How to change NotifyIcon on mouse pointer hoovering over it

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?
 
H

Herfried K. Wagner [MVP]

* "=?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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top