1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
| Dim handle
Sub elastique(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CC0080 ' juste l'elasticité
End Sub
'
Sub bouton_max(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94C90080 'bouton maximiser
End Sub
'
Sub bouton_max_elastique(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CD0080 'bouton maximiser et elasticité(redimentionable par la souris en choppant les coin ou les bord de l'userfom )
End Sub
'
Sub bouton_minimiser(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CA0080 'bouton minimiser
End Sub
'
Sub bouton_min_elastique(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CE0080 'bouton minimiser et elasticité(redimentionable par la souris en choppant les coin ou les bord de l'userfom )
End Sub
'
Sub bouton_max_min(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CB0080 'bouton minimiser et maximiser
End Sub
'
Sub max_min_elastique(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94CF0080 'bouton minimiser et maximiser et élasticité(redimentionable par la souris en choppant les coin ou les bord de l'userfom et le bouton )
End Sub
'
Sub no_bouton(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94C00080 'sans bouton
End Sub
'
Sub no_bouton_elastique(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94C40080 'sans bouton elastique(redimentionable par la souris en choppant les coin ou les bord de l'userfom )
End Sub
'
Sub no_caption(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94080080: SetWindowLongA handle, -20, &H0: ' sans caption
DrawMenuBar handle
usf.BorderStyle = 0: usf.SpecialEffect = 0
End Sub
'
Sub no_caption_cadre_coin_rond_elastique(usf As Object)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H140F0101 ' sans caption cadre epais coin arrondi et elastique(redimentionable par la souris en choppant les coin ou les bord de l'userfom )
DrawMenuBar handle
'usf.show 0
End Sub
'
Sub no_caption_cadre_epai_carré(usf As Object)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H140B0101 ' sans caption cadre epais carré
DrawMenuBar handle
'usf.show 0
End Sub
'
Sub normal(usf)
handle = fwa(vbNullString, usf.Caption)
SetWindowLongA handle, -16, &H94C80080 'userform normal
DrawMenuBar handle
End Sub
'
sub plein_ecran(usf)
handle = fwa(vbNullString, usf.Caption) ' plein ecran sans modifier la caption ni bouton ( reelle maximisation)
showw handle,3
End sub |
Partager