#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
$Form = GUICreate("Listview控件读取演示ACN", 287, 246, 192, 124)
$ListView = GUICtrlCreateListView("", 32, 24, 225, 161)
$Column = _GUICtrlListView_AddColumn($ListView, '解压运行程序', 220)
$Combo = GUICtrlCreateCombo("", 32, 200, 225, 25)
GUICtrlSetData(-1,'1.exe|2.exe|3.exe')
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
for $i = 0 To _GUICtrlListView_GetItemCount($ListView) - 1
MsgBox(4096, "", ' 读取信息:'&_GUICtrlListView_GetItemText($ListView, $i))
Next
Exit
Case $Combo
_GUICtrlListView_AddItem($ListView, GUICtrlRead($Combo))
EndSwitch
WEnd
|