可以用下面代码测试 注释的可以随便测试都是隐藏项目输入数据后 会显示(有时需要左右拉下) 请问如何解决
我的系统是WIN7 不至于是系统问题吧
#include <GUIListView.au3>
Opt("GUIOnEventMode", 1)
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
GUISetOnEvent(-3, "Form1Close")
$ListView1 = GUICtrlCreateListView("显示|隐藏", 64, 24, 481, 289)
_GUICtrlListView_SetColumnWidth(-1, 0, 150)
;~ _GUICtrlListView_SetColumnWidth(-1,1,0)
_GUICtrlListView_HideColumn(-1, 1)
$Button1 = GUICtrlCreateButton("Button1", 152, 344, 265, 65)
GUICtrlSetOnEvent(-1, "Button1Click")
GUISetState(@SW_SHOW)
While 1
Sleep(100)
WEnd
Func Button1Click()
;~ GUICtrlCreateListViewItem("1|2",$ListView1)
_GUICtrlListView_AddItem($ListView1, "1", 0)
_GUICtrlListView_AddSubItem($ListView1, 0, "2", 1, 1)
EndFunc ;==>Button1Click
Func Form1Close()
Exit
EndFunc
|