Funkce:
V deklaraΦnφ Φßsti
formulß°e zapiÜte:
Private Declare Function ShowWindow Lib "user32"
_
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32" _
Alias "FindWindowA" (ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias _
"FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As
Long, _
ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Function hideStartButton()
OurParent& = FindWindow("Shell_TrayWnd", "")
OurHandle& = FindWindowEx(OurParent&, 0, "Button",
vbNullString)
ShowWindow OurHandle&, 0
End Function
Private Function showStartButton()
OurParent& = FindWindow("Shell_TrayWnd", "")
OurHandle& = FindWindowEx(OurParent&, 0, "Button", vbNullString)
ShowWindow OurHandle&, 5
End Function
|