$add = GUICtrlCreateButton("Add", 64, 32, 75, 25)
$clear = GUICtrlCreateButton("Clear", 64, 72, 75, 25)
$mylist = GUICtrlCreateList("buttons that have been clicked", 176, 32, 200, 200, 0x00100000)
GUICtrlSetLimit(-1, 300)
GUISetState()
While 1
$msg = GUIGetMsg()
Switch $msg
Case -3
Exit
Case $add
GUICtrlSetData($mylist, "You clicked button No1-You clicked button No1|")
Case $clear
GUICtrlSetData($mylist, "")
EndSwitch
WEnd 学习中。。。
页:
1
[2]