本帖最后由 lynfr8 于 2009-7-17 19:14 编辑 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 355, 256, 192, 124)
$Group1 = GUICtrlCreateGroup("Group1", 32, 32, 289, 153, $BS_CENTER)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 128, 88, 81, 49)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
如果group里面没有创建其他控件就会报错 |