1 2 3 4 5 6 7 8 9 10 11
| Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private 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
Const SWP_HIDEWINDOW = &H80
Const SWP_SHOWWINDOW = &H40
Dim hwndTaskBar As Long
hwndTaskBar = FindWindow("Shell_traywnd", "")
'cacher la barre
Call SetWindowPos(hwndTaskBar , 0, 0, 0, 0, 0, SWP_HIDEWINDOW)
'Afficher la barre
Call SetWindowPos(hwndTaskBar , 0, 0, 0, 0, 0, SWP_SHOWWINDOW ) |
Partager