Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21861

How To Receive Tray Icon Callback Messages with NOTIFYICON_VERSION_4

$
0
0
According to this thread, and I quote:
Quote:

Originally Posted by LaVolpe View Post
1. Vista offers users option to display a popup window instead of a tooltip. In Vista, hover over your Sound icon and the new "tip" should show. In order to know that the window should be displayed, new msgs were added: NIN_POPUPOPEN and NIN_POPUPCLOSE. Additionally, Vista can send the mouse coordinates back with the message.
:: The above requires at least two modifications
a. There is now a NOTIFYICON_VERSION_4 = 4 constant vs just version 3
b: Subclassing is required now, because one can no longer use VB's MouseMove events to trap the messages. With v4, wParam contains both icon id and message, lParam contains the X,Y coords

So in short:
1. Is it absolutely true that subclassing is needed to accomplish this?
2. Has it been done in VB6 and is there some sample code on how to do it?
3. If the answer to my 2nd question is no, then is there a subclassing example that is similar in nature and which one could emulate to do what I'm asking?


Thanks in advance.

Viewing all articles
Browse latest Browse all 21861

Trending Articles