帮助上貌似没说BitAND(GUICtrlRead($Combo1), $GUI_CHECKED) 适用于 combo
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <WinAPI.au3>;;;;;;;;;;;;;;;;;;;
#Include <GuiComboBox.au3>;;;;;;;;;;;;;;;;
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 566, 260, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 120, 64, 305, 25 )
GUICtrlSetData(-1, "请选择...|奇瑞|江淮", "请选择...")
$Combo2 = GUICtrlCreateCombo("", 120, 112, 305, 25)
GUICtrlSetData(-1, "请选择...|奇瑞|江淮", "请选择...")
$Button1 = GUICtrlCreateButton("Button1", 176, 160, 201, 49)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE ;关闭窗体事件
Exit
Case $Button1 ;单元格单击事件
If _GUICtrlComboBox_GetCurSel(_WinAPI_GetDlgItem($Form1, $Combo1))>0 Then
MsgBox(4096, "", "这个消息框将会显示10秒", 10)
EndIf
EndSwitch
WEnd
|