Results 1 to 3 of 3

Thread: [RESOLVED] How to trigger code when mouse is over systray icon?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2006
    Posts
    26

    Resolved [RESOLVED] How to trigger code when mouse is over systray icon?

    I have added my application with an icon to the system tray. How do I sense when the mouse is over it?

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: How to trigger code when mouse is over systray icon?

    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}

  3. #3
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: How to trigger code when mouse is over systray icon?

    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"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width