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?