'&H94C00080' pas de bouton
'&H94C80080'' juste le bouton fermer
'&H94C90080' bouton fermer et agrandir
'&H94CF0080' bouton reduire ,bouton agrandir, bouton fermer
#If VBA7 Then
#If Win64 Then
Declare PtrSafe Function SetWindowLongA Lib "User32" (ByVal hWnd As LongPtr, ByVal nIndex As Long, ByVal dwNewLong As LongPtr) As Long
Declare PtrSafe Function FindWindowA Lib "User32" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPtr
#Else
Declare PtrSafe Function SetWindowLongA Lib "User32" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare PtrSafe Function FindWindowA Lib "User32" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
#End If
#Else
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
#End If
'procedure suppression de croix de fermeture windows
Sub Pasdecroix(USF)
Dim hWnd As Long
hWnd = FindWindowA(vbNullString, USF.Caption)
SetWindowLongA hWnd, -16, &H94F80080
End Sub