ID: 157
Viewed: 3032
Added: Apr 29, 2002
Version:
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
Thank you for your vote. Please wait...
It appears you already voted for this snippet
It appears your vote value was empty
none
Highlight all by clicking in box
<!---Declaration--->
'
' Declarations
'
Public Const SWP_HIDEWINDOW = &H80
Public Const SWP_SHOWWINDOW = &H40
Public Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Public 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
Public Sub DisplayTaskBar(ByVal bVal As Boolean)
Dim lTaskBarHWND As Long
Dim lRet As Long
Dim lFlags As Long
On Error GoTo vbErrorHandler
lFlags = IIf(bVal, SWP_SHOWWINDOW, SWP_HIDEWINDOW)
lTaskBarHWND = FindWindow("Shell_traywnd", "")
lRet = SetWindowPos(lTaskBarHWND, 0, 0, 0, 0, 0, lFlags)
If lRet < 0 Then
'
' Handle error from api
'
End If
Exit Sub
vbErrorHandler:
'
' Handle Errors here
'
End Sub
Highlight All
<!---Code--->
none;
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.