Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing system tray icons
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01001782
Message ID:
01001887
Vues:
27
Hi Anatoliy, I have been looking around and came across MSKB#149276 which refers to api Shell_NotifyIcon function in Shell32. But I am not sure how to perform a simple refresh of the system tray/taskbar notification area.


>May be try this code as well, if it can remove invalid icons:
>#DEFINE TRAYWINDOW_CLASS "Shell_TrayWnd"
>#DEFINE SW_SHOW 5
>#DEFINE SW_SHOWNA 8
>#DEFINE SW_SHOWDEFAULT 10
>
>DECLARE INTEGER FindWindow IN user32;
>	STRING lpClassName, STRING lpWindowName
>
>DECLARE INTEGER ShowWindow IN user32 AS ShowWindowA;
>	INTEGER hWindow, INTEGER nCmdShow
>
>hTray = FindWindow(TRAYWINDOW_CLASS, Null)
>= ShowWindowA(hTray, SW_SHOWNA)
>
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