本帖最后由 jinhao 于 2010-6-3 21:22 编辑 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 284, 214, -1, -1)
$ListView1 = GUICtrlCreateListView("ID|Item", 16, 8, 250, 150)
$Button1 = GUICtrlCreateButton("Button1", 32, 176, 75, 25, 0)
$Button2 = GUICtrlCreateButton("Button2", 152, 176, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
MsgBox(0,'','如何把文本Item修改为Item1?')
GUICtrlSetData($ListView1,"|Item1")
Case $Button2
Exit
EndSwitch
WEnd
|