>I tried it but it does not seem to work although I am not sure that I am getting the right window handle to the task notification area (normally bottom right position, at the end of the task bar). I am using FindWindow() on "Shell_TrayWnd" and it is returning a window handle of 65658. I dont know if that is the correct handle though.
>
Hi Jos,
To get to notification icon area, follow the windows hirarchy.
Win9X/ME: "Shell_TrayWnd" -> "TrayNotifyWnd" -> "ToolbarWindow32"
W2K/XP: "Shell_TrayWnd" -> "TrayNotifyWnd" -> "SysPager" -> "ToolbarWindow32"
I'm not quite sure "SysPager" is the correct class name. Please re-check using Spy++
hWndShellTray = FindWindow( "Shell_TrayWnd", Null )
hWndNotifyArea = FindWindowEx( hWndShellTray, 0, "TrayNotifyWnd", Null )
hWndNotifyIcon = FindWindowEx( hWndNotifyArea, 0, "ToolbarWindow32", Null )
Now you have the right one, but you still have to make sure that you have the right coordinate for the right icon. Or you can send WM_MOUSEMOVE in a loop, to the whole "Notification Icon" window rectangle <*G*>
Regards
Herman