Supprimer la barre bleue d'une USER

ericTA

XLDnaute Occasionnel
Bonjour,
Est-t-il possible de supprimer la barre bleue d'une USER?
Merci d'avace.
Eric
 

Vinc

XLDnaute Junior
Re : Supprimer la barre bleue d'une USER

Bonjour ÉricTA, oui il est possible d'effacer la bande bleue, j'utilise ce code :

Dans un Module :
Code:
Declare Function GetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Declare Function SetWindowLongA Lib "user32" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function FindWindowA Lib "user32" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long

Sub CACHER_LA_BANDE_BLEUE(USF As UserForm)
Dim hwnd&
hwnd = FindWindowA("Thunder" & IIf(Application.Version Like "8*", "X", "D") & "Frame", USF.Caption)
SetWindowLongA hwnd, -16, GetWindowLongA(hwnd, -16) And Not &HC00000: DrawMenuBar hwnd
End Sub

Ensuite à init de ton UserForm
Code:
Call CACHER_LA_BANDE_BLEUE(Me)
 

Discussions similaires

Réponses
2
Affichages
181
Réponses
4
Affichages
191

Statistiques des forums

Discussions
312 609
Messages
2 090 195
Membres
104 449
dernier inscrit
Miguel937