Adlakha
July 18th, 2001, 03:52 AM
Hi,
How to hide the task bar the code I have.
But this still this occupies the space of the taskbar though the task bar is hidden.
How to improve the code given below.
Or suggest some other method.
Thanks in Advance.
Deepak Adlakha
' to Hide and Show Task Bar Following two APIs are used.
Declare Function SetWindowPos Lib "user32" (byval hwnd as Long, byval hWndInsertAfter as Long, byval x as Long, byval y as Long, byval cx as Long, byval cy as Long, byval wFlags as Long) as Long
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (byval lpClassName as string, byval lpWindowName as string) as Long
public Const SWP_HIDEWINDOW = &H80
public Const SWP_SHOWWINDOW = &H40
' to Hide and Show Task Bar Above two APIs and variables are used.
1.
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
2.
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 1, 1, 1, 1, 1, SWP_HIDEWINDOW)
How to hide the task bar the code I have.
But this still this occupies the space of the taskbar though the task bar is hidden.
How to improve the code given below.
Or suggest some other method.
Thanks in Advance.
Deepak Adlakha
' to Hide and Show Task Bar Following two APIs are used.
Declare Function SetWindowPos Lib "user32" (byval hwnd as Long, byval hWndInsertAfter as Long, byval x as Long, byval y as Long, byval cx as Long, byval cy as Long, byval wFlags as Long) as Long
Declare Function FindWindow Lib "user32" Alias "FindWindowA" (byval lpClassName as string, byval lpWindowName as string) as Long
public Const SWP_HIDEWINDOW = &H80
public Const SWP_SHOWWINDOW = &H40
' to Hide and Show Task Bar Above two APIs and variables are used.
1.
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW)
2.
Dim Thwnd as Long
Thwnd = FindWindow("Shell_traywnd", "")
Call SetWindowPos(Thwnd, 1, 1, 1, 1, 1, SWP_HIDEWINDOW)