Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide Windows Task Bar
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00512043
Message ID:
00512332
Vues:
15
>This function will help you
>
>to hide:
>=HideTaskBar(.T.)
>
>to show:
>=hidetaskbar(.f)
>
>
>FUNCTION HideTaskBar(TaskBarHidden)
>TaskBarStatus=TaskBarHidden
>#DEFINE SW_NORMAL 1
>#DEFINE SW_HIDE 0
>DECLARE LONG ShowWindow IN WIN32API LONG, LONG
>DECLARE LONG FindWindow IN WIN32API STRING, STRING
>hWnd=FindWindow("Shell_TrayWnd","")
>IF hWnd=0
>RETURN
>ELSE
>lngState=IIF(TaskBarStatus, SW_HIDE, SW_NORMAL)
>=ShowWindow(hWnd,lngState)
>ENDIF
>ENDFUNC

Thanks, Adrianne, that's a cool function. I wonder if there is WSH equivalent?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform