本帖最后由 ddx13 于 2009-5-30 21:26 编辑
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiListView.au3>
$Form1 = GUICreate("Form1", 256, 153, 336, 253)
$ListView1 = GUICtrlCreateListView("", 0, 0, 250, 150)
_GUICtrlListView_AddColumn($ListView1, "名称", 125)
_GUICtrlListView_AddColumn($ListView1, "型号", 100)
_GUICtrlListView_JustifyColumn($ListView1, 0, 2)
_GUICtrlListView_JustifyColumn($ListView1, 1, 2)
_GUICtrlListView_JustifyColumn($ListView1, 1, 0)
_GUICtrlListView_HideColumn( $ListView1 , 1)
GUISetState(@SW_SHOW)
_OpenLIST()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func _OpenLIST()
For $i = 1 to 20
sleep(100)
$cmboVal=""
For $c = 1 to 2
$cmboVal &=$i&"A|"
Next
GUICtrlCreateListViewItem($cmboVal, $ListView1)
Next
_GUICtrlListView_HideColumn( $ListView1 , 1)
EndFunc
加载数的时候,我想让列表2(型号)隐藏性加进去,但是我隐藏后,加载的时候就会出现,会的朋友帮忙看一下。谢 谢。 |