Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide Windows Task Bar
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512043
Message ID:
00512332
Views:
14
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform