I have added my application with an icon to the system tray. How do I sense when the mouse is over it?
Regardless which method you used to receive message traffic from the tray, you should be able to trap for a WM_MouseMove message: &H200
Insomnia is just a byproduct of, "It can't be done" Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum. Read the HitchHiker's Guide to Getting Help on the Forums. Here is the list of TAGs you can use to format your posts Here are VB6 Help Files online {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor} {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}
You need to assign WM_MOUSEMOVE message to uCallBackMessage property when you initialize NOTIFYICONDATA structure: Code: NID.uCallBackMessage = WM_MOUSEMOVE NID.szTip = "Mouse is over systray icon"
NID.uCallBackMessage = WM_MOUSEMOVE NID.szTip = "Mouse is over systray icon"
Microsoft MVP - Visual Basic 2006-2013 Why VB clears the clipboard on startup and how to avoid it? . Filtering Arrays . Save File To Database . Extract File From Database . Extract picture from database without using hard drive . Change Menu BackColor . How to use MS Flexgrid . Make Frame Transparent . The Easiest Way to Create an NT Service With VB6 . How to comment blocks of code in VB5 and VB6 . How to find and replace missing members of control array Visual Basic 6.0 On-Line Documentation . Connection Strings
Forum Rules