本帖最后由 chron 于 2015-3-29 21:08 编辑
想在用户点击组合列表下拉箭头时产生事件,但是以下不成功,求大神指点!#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("Form1", 615, 437, 480, 152)
$Combo1 = GUICtrlCreateCombo("", 249, 120, 215, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Form1
Case $Form1
Case $Form1
Case $Form1
Case $Combo1
MsgBox(4096, "666", "666666")
EndSwitch
WEnd
暂时使用button来代替。 |