#include <GUIConstantsEx.au3>
Opt('GUIResizeMode', 802)
Dim $Graphic[6], $s = @SEC, $ChangCOL = 0
#Region ### START Koda GUI section ### Form=
$Form = GUICreate("测试", 222, 108, -1, -1)
$Button = GUICtrlCreateButton("扩展↓", 136, 72, 65, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button
If GUICtrlRead($Button) = "扩展↓" Then
WinMove($Form, "", Default, Default, Default, 240)
GUICtrlSetData($Button, "收缩↑")
ElseIf GUICtrlRead($Button) = "收缩↑" Then
WinMove($Form, "", Default, Default, Default, 140)
GUICtrlSetData($Button, "扩展↓")
EndIf
EndSwitch
WEnd
使用窗体收缩的方式会不会看起来更简洁点 |