#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
Local $zc,$zdc,$pp,$N
$Form2 = GUICreate("系统", 350, 100, -1, -1)
$Label1 = GUICtrlCreateLabel("请选择:", 22, 16, 150, 24)
GUICtrlSetFont(-1, 15, 400, 0, "黑体")
$Label1 = GUICtrlCreateLabel("请选择:", 22, 46, 150, 24)
GUICtrlSetFont(-1, 15, 400, 0, "黑体")
$Checkbox1 = GUICtrlCreateCheckbox("1重", 200, 15, 40, 17)
$Checkbox2 = GUICtrlCreateCheckbox("2重", 250, 15, 51, 17)
$Combo1 = GUICtrlCreateCombo("1", 200, 45, 100, 100)
GUISetState(@SW_SHOW)
GUICtrlSetData(-1, "1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|", "1")
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
If GUICtrlRead($Checkbox1) = 1 Then
$zc = ControlGetText("系统", "", "Button1")
MsgBox(1, "系统", "你选择:" & $zc)
Else
$zc = ""
MsgBox(1, "系统", "你选择:" & $zc)
EndIf
Case $Checkbox2
If GUICtrlRead($Checkbox2) = 1 Then
$zdc = ControlGetText("系统", "", "Button2")
MsgBox(1, "系统", "你选择:" & $zdc)
Else
$zdc = ""
MsgBox(1, "系统", "你选择:" & $zdc)
EndIf
Case $Combo1
$pp = ControlGetText("", "", $Combo1)
$N = MsgBox(1 + 4144, "系统", "你选择:" & $pp & @CRLF & "你选择了:" & $zc & $zdc)
EndSwitch
WEnd