#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
dim $A1="1",$A2="2",$A3="3"
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 298, 205, 193, 115)
$Combo1 = GUICtrlCreateCombo("", 72, 40, 145, 25)
GUICtrlSetData(-1, "test1|test2|test3")
$Button1 = GUICtrlCreateButton("更改", 96, 112, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Combo1
Case $Button1
GUICtrlSetData($Combo1, "") ;清空
GUICtrlSetData($Combo1, $A1&"|"&$A2&"|"&$A3) ;修改
EndSwitch
WEnd |