#include <GuiListView.au3>
#include <GuiImageList.au3>
#include <GuiConstantsEx.au3>
GUICreate("显示图片", 800, 600, -1, -1)
$ListView1 = GUICtrlCreateListView("", 12, 12, 778, 578)
GUICtrlSetStyle($ListView1, $LVS_ICON)
$LHand = GUICtrlGetHandle ($ListView1)
$hImage = _GUIImageList_Create()
_GUIImageList_SetIconSize($hImage,100,120)
_GUIImageList_SetBkColor($hImage,0xFFFFFF)
_GUIImageList_AddBitmap($hImage, "C:\list.bmp")
_GUICtrlListView_SetImageList($ListView1, $hImage, 0)
_GUICtrlListView_AddItem($ListView1, "图片", 1)
_GUICtrlListView_SetIconSpacing($ListView1, 72, 72)
GUISetState(@SW_SHOW)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
Exit
|