关于复选框的问题?
谁能给个复选框的不定项选择完成不同任务的例子么?:face (20): :face (20): :face (20): #include <ButtonConstants.au3>#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ###
$Form1 = GUICreate("复选框实例", 476, 277, 193, 125)
$drivers = GUICtrlCreateCheckbox("drivers", 136, 56, 97, 17)
$Button1 = GUICtrlCreateButton("确定", 112, 152, 75, 25, 0)
$Button2 = GUICtrlCreateButton("关闭", 216, 152, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If GUICtrlRead($drivers)=1 Then
MsgBox(64,"复选框实例",GUICtrlRead($drivers,1)&"被中!")
Else
MsgBox(64,"复选框实例",GUICtrlRead($drivers,1)&"未被中!")
EndIf
Case $Button2
Exit
EndSwitch
WEnd
页:
[1]