本帖最后由 诺言 于 2011-9-29 00:41 编辑 #Include <File.au3>
#include <GuiListView.au3>
#include <GUIConstantsEx.au3>
$Form = GUICreate("", 500, 220, @DesktopWidth/2-250, 0, 0x90800000, 0x00000008)
$Button = GUICtrlCreateButton("关闭", 0, 0, 500, 20)
GUICtrlSetColor(-1, 0x0000FF)
$ListView=GUICtrlCreateListView("标题|内容",0,20,500,200,0x4000,0x00000031)
_GUICtrlListView_SetColumnWidth($ListView,0,200)
_GUICtrlListView_SetColumnWidth($ListView,1,260)
GUICtrlCreateListViewItem("标题|内容",$ListView)
For $i=1 To _FileCountLines("文本.txt")
$ViewItem=GUICtrlCreateListViewItem(FileReadLine("文本.txt",$i),$ListView);这个变量应该怎么写
Next
While 1
$GUI = GUIGetMsg()
Select
Case $GUI = $GUI_EVENT_CLOSE Or $GUI = $Button
ExitLoop
Case $GUI = $ViewItem;这里该怎么选择
MsgBox(0,0,0)
EndSelect
WEnd
|