Barre des taches

Résolu
cs_zeboss Messages postés 36 Date d'inscription samedi 8 novembre 2003 Statut Membre Dernière intervention 15 juin 2005 - 24 févr. 2005 à 19:13
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 - 25 févr. 2005 à 00:18
bonjour, g fai une connerie : g plus la barre des taches!! voila comment je l'ai enlever mais je peu plu la remettre svp aidez moi!!!

mon module :

Public Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hwnd As Long, ByVal hWndChild As Long, ByVal lpszClassName As String, ByVal lpszWindow As String) As Long
Public Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long


Public Const SW_HIDE = 0
Public Const SW_NORMAL = 1
Public Const SW_SHOWMINIMIZED = 2
Public Const SW_SHOWMAXIMIZED = 3
Public Const SW_SHOWNOACTIVATE = 4
Public Const SW_SHOW = 5
Public Const SW_MINIMIZE = 6
Public Const SW_SHOWMINNOACTIVE = 7
Public Const SW_SHOWNA = 8
Public Const SW_RESTORE = 9
Public Const SW_SHOWDEFAULT = 10

ma form :

Dim bDisabled As Boolean

hwnd = FindWindowEx(0&, 0&, "Shell_traywnd", vbNullString)
If hwnd <> 0 Then
Call ShowWindow(hwnd, WS_HIDE) 'la elle est cachée
End If

Dim bDisabled As Boolean

hwnd = FindWindowEx(0&, 0&, "Shell_traywnd", vbNullString)
EIf hwnd <> 1 Then
Call ShowWindow(hwnd, WS_SHOW)'la elle se remet plus alors qu'elle le devrait !!!
End If

merci de votre aide!!

4 réponses

Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
24 févr. 2005 à 19:45
j'utilise FindWindow mais ça devrait marcher avec l'autre aussi:

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

si t'avais mis Option Explicit tu aurais vu ton erreur:

SW_HIDE et SW_SHOW

Daniel
3
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
24 févr. 2005 à 19:32
elle devrait se remettre :
hwnd = FindWindow( "Shell_TrayWnd", vbNullString)
ShowWindow hwnd,5

Daniel
0
cs_Anne Onyme Messages postés 19 Date d'inscription jeudi 24 février 2005 Statut Membre Dernière intervention 22 juin 2005
25 févr. 2005 à 00:15
C'est amusant !!

Anne....
0
Gobillot Messages postés 3140 Date d'inscription vendredi 14 mai 2004 Statut Membre Dernière intervention 11 mars 2019 34
25 févr. 2005 à 00:18
ça m'est arrivé alors, j'ai perdu la barre des tâches et les icones en plus.

Daniel
0
Rejoignez-nous