回复 1# 茫然
还可以这样
#include <GuiListView.au3>
#include <GUIConstantsEx.au3>
$FROM = GUICreate("", 615, 408, -1, -1)
$list = GUICtrlCreateListView("编号|计算机|IP地址", 395, 4, 215, 398)
_GUICtrlListView_SetColumnWidth($list, 0, 40)
_GUICtrlListView_SetColumnWidth($list, 1, 65) ;这里无效
_GUICtrlListView_SetColumnWidth($list, 2, 110)
;GUICtrlCreateListViewItem("001|1234567890123456789|192.168.100.100", $list)
_GUICtrlListView_AddItem($list,"001")
_GUICtrlListView_AddSubItem($list,0,"1234567890123456789",1)
_GUICtrlListView_AddSubItem($list,0,"192.168.100.100",2)
#endregion ### END Koda GUI section ###
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
Sleep(100)
WEnd
|