How to change NotifyIcon on mouse pointer hoovering over it

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'd like to change icon in tray (NotifyIcon class in .net) when mouse pointer goes over it (activate) and bring back old icon (deactivate) when pointer goes out of the region of the icon. I thought that I can make it with the WindowHook (SetWindowsHookEx, MouseProc, TrackMouseEvent), but I need to pass a window handle as a parameter. How to get this handle from NotifyIcon object?
 
* "=?Utf-8?B?YmlsYmVycnk=?= said:
I'd like to change icon in tray (NotifyIcon class in .net) when mouse
pointer goes over it (activate) and bring back old icon (deactivate)
when pointer goes out of the region of the icon. I thought that I can
make it with the WindowHook (SetWindowsHookEx, MouseProc,
TrackMouseEvent), but I need to pass a window handle as a parameter. How
to get this handle from NotifyIcon object?

Have you ever seen that in another application? I didn't, so I think
it's hard/impossible to do.
 
Back
Top