谁没有幼稚过呢?
其实你已经非常接近成功了。
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 471, 304, 192, 124)
$combo1 = GUICtrlCreateCombo("", 144, 104, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
$combo2 = GUICtrlCreateCombo("", 144, 184, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlSetData($combo1, "小学教育")
GUICtrlSetData($combo1, "中学教育")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $combo1
If GUICtrlRead($combo1) = "小学教育" Then
GUICtrlSetData($combo2, "")
GUICtrlSetData($combo2, "数学")
GUICtrlSetData($combo2, "语文")
GUICtrlSetData($combo2, "英语")
Else
GUICtrlSetData($combo2, "")
GUICtrlSetData($combo2, "语文")
GUICtrlSetData($combo2, "数学")
GUICtrlSetData($combo2, "物理")
GUICtrlSetData($combo2, "化学")
GUICtrlSetData($combo2, "地理")
GUICtrlSetData($combo2, "历史")
GUICtrlSetData($combo2, "政治")
EndIf
EndSwitch
WEnd
|