本帖最后由 newx 于 2009-10-29 00:31 编辑 #include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <ListViewConstants.au3>
#include <GuiImageList.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 400, 300, -1, -1)
$ListView1 = GUICtrlCreateListView("", 2, 2, 396, 296)
_GUICtrlListView_SetExtendedListViewStyle($listview1, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_DOUBLEBUFFER))
$hImage = _GUIImageList_Create(1, 25);25为间距
_GUICtrlListView_SetImageList($listview1, $hImage, 1)
_GUICtrlListView_AddColumn($listview1, "Items", 320)
_GUICtrlListView_AddItem($listview1, "Item 1", 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|