wk198 发表于 2010-4-5 20:09:32

listview 分组自定义函数获取不了 分组数量

_GUICtrlListView_GetGroupCount
获取分组数量
#Include <GuiListView.au3>
_GUICtrlListView_GetGroupCount($hWnd)

为什么 官方给的 例子中分组数量 获取不了 总是显示 0

就没其他人碰到这个问题吗

鸟人 发表于 2010-4-5 20:14:48

本帖最后由 鸟人 于 2010-4-5 20:16 编辑

#include <GuiConstantsEx.au3>
#include <GuiListView.au3>

Opt('MustDeclareVars', 1)

$Debug_LV = False ; 检查传递给函数的类名, 设置为真并使用另一控件句柄观察其工作

_Main()

Func _Main()
Local $hListView
GUICreate("ListView Get Column Count", 400, 300)
$hListView = GUICtrlCreateListView("col1|col2|col3", 2, 2, 394, 268)
GUISetState()

MsgBox(4160, "Information", "Column Count: " & _GUICtrlListView_GetColumnCount($hListView))

; 循环至用户退出
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

GUIDelete()
EndFunc;==>_Main

wk198 发表于 2010-4-5 23:03:00

朋友 你看错是
Group是分组

不是列

afan 发表于 2010-4-5 23:10:30

最低系统要求: Windows Vista

wk198 发表于 2010-4-7 01:13:23

:face (17):
页: [1]
查看完整版本: listview 分组自定义函数获取不了 分组数量