General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only