#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 435, 275, -1, -1)
$Edit1 = GUICtrlCreateEdit("", 288, 8, 137, 209)
GUICtrlSetResizing(-1,802)
$Button1 = GUICtrlCreateButton("Button1", 288, 232, 57, 25)
GUICtrlSetResizing(-1,802)
$Button2 = GUICtrlCreateButton("Button2", 368, 232, 57, 25)
GUICtrlSetResizing(-1,802)
$Edit2 = GUICtrlCreateEdit("", 16, 8, 249, 209)
GUICtrlSetResizing(-1,802)
$Button3 = GUICtrlCreateButton("Button3", 24, 232, 57, 25)
GUICtrlSetResizing(-1,802)
$Button4 = GUICtrlCreateButton("简洁<<", 184, 232, 65, 25)
GUICtrlSetResizing(-1,802)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button4
If GUICtrlRead($Button4)="简洁<<" Then
GUICtrlSetData($Button4,"高级>>")
$XY=WinGetPos($Form1)
WinMove($Form1,"",$XY[0],$XY[1],288,$XY[3])
Else
GUICtrlSetData($Button4,"简洁<<")
$XY=WinGetPos($Form1)
WinMove($Form1,"",$XY[0],$XY[1],435,$XY[3])
EndIf
EndSwitch
WEnd