本帖最后由 131738 于 2010-2-7 21:33 编辑 #include <WindowsConstants.au3>
;以下建立主窗口
$form = GUICreate("", 800, 600, -1, -1 ,BitOR($WS_POPUP,$WS_CLIPSIBLINGS))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $form, "int", _
1000, "long", 0x00000010);主窗口打开效果;参数 1000 为调整渐大渐小(扩大/缩小)的效果速度
$Button4 = GUICtrlCreateButton("退 出", 670, 552, 105, 25)
GUICtrlSetFont (-1,10, 400)
$state = 1 ;运行状态
If $state = 1 Or $state = "" Then
GUISetState(@SW_SHOW)
ElseIf $state = 0 Then
GUISetState(@SW_HIDE)
EndIf
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $Button4;退出 动作
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $form, "int", _
1000, "long", 0x00050010);退出效果;参数 1000 为调整渐大渐小(扩大/缩小)的效果速度
ExitLoop
EndSelect
WEnd
|