Code : Tout sélectionner
Global Const $WS_SYSMENU = 0x00080000, $WS_POPUP = 0x80000000 , $GUI_WS_EX_PARENTDRAG = 0x00100000 , $SS_CENTER = 0x1
Global $gestion[4][3]
$MainForm = GUICreate("Logiciel de restauration",@DesktopWidth,@DesktopHeight,0,0 ,$WS_SYSMENU + $WS_POPUP)
GUICtrlCreateLabel(' Logiciel de restauration',0,0,@DesktopWidth - 18 , @DesktopHeight - 1000, 0, $GUI_WS_EX_PARENTDRAG); ParentDrag pour pouvoir quitter/bouger la fenêtre , à supprimer ?
GUICtrlSetColor(-1 , 0xD8DED3)
GUICtrlSetBkColor(-1 , 0x5A6A50)
GUICtrlSetFont(-1,10,800)
$Exit = GUICtrlCreateLabel("X" , @DesktopWidth - 18 , 0 , 18 , @DesktopHeight - 1000 , $SS_CENTER)
GUICtrlSetFont(-1, 10, 800, 0, "Arial Black")
GUICtrlSetColor($Exit , 0xD8DED3)
GUICtrlSetBkColor($Exit, 0x5A6A50)
$Minimize = GUICtrlCreateLabel("_" , @DesktopWidth - (18*2) , 0 , 18 , @DesktopHeight - 1000 , $SS_CENTER)
GUICtrlSetFont(-1, 10, 800, 0, "Arial Black")
GUICtrlSetColor($Minimize , 0xD8DED3)
GUICtrlSetBkColor($Minimize, 0x5A6A50)
GUISetState(@SW_SHOW)
While (1)
$Msg = GUIGetMsg(1)
Switch $Msg[1]
Case $MainForm
Switch $Msg[0]
Case $Exit
Exit
Case $Minimize
GUISetState(@SW_MINIMIZE , $MainForm)
EndSwitch
EndSwitch
WEnd