Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing system tray icons
Message
De
13/04/2005 09:04:33
 
 
À
07/04/2005 22:25:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01001782
Message ID:
01004117
Vues:
37
Thanks Herman. I will give it a try.




>>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
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform