关于怎样设置ListView行高的问题
搜索了一下论坛,好像说给ListItem设置给图标撑大它,具体是怎样呢,我给listitem设置了个图标,但是好像没法撑大。$ListView1 = GUICtrlCreateListView("aaaa|bbbb|cccc", 0, 0, 500, 300, -1,BitOR($WS_EX_CLIENTEDGE,$LVS_EX_FULLROWSELECT))
$ListView1_0 = GUICtrlCreateListViewItem("aaffff|34234234", $ListView1)
GUICtrlSetImage(-1, "E:\AutoIt\listview\test.bmp", -1,3) #include <GuiConstantsEx.au3>
#include <GuiListView.au3>
#include <WindowsConstants.au3>
#include <GuiConstants.au3>
#include <GuiImageList.au3>
GUICreate("ListView Get String Width", 400, 250)
$ListView1 = GUICtrlCreateListView("序号|属性|描述", 10, 10, 300, 150)
$hImage = _GUIImageList_Create(1, 25);25为间距
_GUICtrlListView_SetImageList($ListView1, $hImage, 1)
_GUICtrlListView_AddItem($ListView1, "行 1: 列 1", 0)
_GUICtrlListView_AddItem($ListView1, "行 2: 列 1", 1)
_GUICtrlListView_AddItem($ListView1, "行 3: 列 1", 2)
GUISetState()
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
以前我怎么就没看到过_GUIImageList_Create这个函数呢 气死我也 学了,,,记下!!!!!!
页:
[1]