本帖最后由 水木子 于 2011-8-3 19:31 编辑
回复 7# sliqi
条条道路通罗马!
GUICreate('listview', 220, 250)
$Listview = GUICtrlCreateListView('列 1 |列 2|列 3 ', 10, 10, 200, 150)
$iItem1 = GUICtrlCreateListViewItem('项1|子项1|123', $Listview)
$iItem3 = GUICtrlCreateListViewItem('项2|子项2|456', $Listview)
$iItem4 = GUICtrlCreateListViewItem('项3|子项3|789', $Listview)
$button = GUICtrlCreateButton('123修改成abc', 40, 170, 120, 20)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case -3
Exit
Case $button
GUICtrlSetData($iItem1, '||ABC')
EndSwitch
WEnd
|