Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing system tray icons
Message
From
07/04/2005 22:25:51
 
 
To
07/04/2005 13:01:35
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01001782
Message ID:
01002504
Views:
33
>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++
*** Win9X/ME
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform