#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("测试", 633, 454, 192, 114)
$Group1 = GUICtrlCreateGroup("我靠", 24, 8, 305, 297)
$Button1 = GUICtrlCreateButton("就爱点你", 160, 208, 89, 25, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
yk()
EndSwitch
WEnd
Func yk()
GUISetState(@SW_HIDE,$Form1 )
$Form1_1 = GUICreate("测试", 634, 455, 192, 114)
$Group1 = GUICtrlCreateGroup("我靠", 24, 8, 577, 417)
$Button2 = GUICtrlCreateButton("应用", 496, 392, 89, 25, $WS_GROUP)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
GUISetState(@SW_SHOW,$Form1 )
Case $Button2
GUISetState(@SW_SHOW,$Form1 )
GUISetState(@SW_HIDE,$Form1_1)
EndSwitch
WEnd
EndFunc ;==>cka
自己编的,你参孝一下。 |