' Exemple proposé par Ket Ans (ket_ans@hotmail.com)
Public Function GetTaskbarHWND() As Long GetTaskbarHWND = FindWindow("shell_traywnd", "") End Function
' On peut ensuite utiliser ce handle pour cacher ou ' afficher la barre des tâches
Public Sub HideTaskbar() ' Cacher la barre des tâches Dim hWin As Long hWin = GetTaskbarHWND() SetWindowPos hWin, 0, 0, 0, 0, 0, &H80 End Sub
Public Sub ShowTaskbar() ' Afficher la barre des tâches Dim hWin As Long hWin = GetTaskbarHWND() SetWindowPos hWin, 0, 0, 0, 0, 0, &H40 End Sub
|