组合框如何禁止输入?
本帖最后由 doremi 于 2009-12-24 11:35 编辑组合框只能下拉选择提供选项,不能自行输入。:face (35): $CBS_DROPDOWNLIST 楼上正解,我完善一下:face (36):#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 24, 48, 145, 25,$CBS_DROPDOWNLIST)
GUICtrlSetData(-1,'11|22|33|','33')
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
OK~感谢了~ 不错,谢谢了,收藏一下。
页:
[1]