导航:  Windows Controls Procedures > List View Control > Wrappers >

ListView_GetGroupRect

上一页返回章节概述下一页

描述

 

获取指定组的矩形.您可以使用此功能或明确的把LVM_GETGROUPRECT消息.

 

FreeBASIC 语法

FUNCTION ListView_GetGroupRect ( _

  BYVAL hwndLV AS HWND, _

  BYVAL iGroupId AS LONG, _

  BYVAL nType AS LONG, _

  BYVAL prc AS RECT PTR _

) AS BOOL

 

参数

hwndLV

[in]句柄ListView控件.

iGroupId

[in] [in]指定组的iGroupId(见LVGROUP结构).

prc

[in, out]指向RECT结构接收指定的iGroupId组信息.消息接收器负责与指定的iGroupId组信息设置结构成员.

 

The calling application is responsible for allocating memory for the structure. Set the top member of the RECT to one of the following flags to specify the coordinates of the rectangle to retrieve:

 

LVGGR_GROUP

整个展开群的坐标.

LVGGR_HEADER

仅标题的坐标(折叠组).

LVGGR_LABEL

仅标签坐标.

LVGGR_SUBSETLINK

仅子集链接的坐标(标记子集).列表视图控件可以限制每个组中显示的可见项的数目.向用户提供链接以允许用户扩展组.这个标志将如果是子集的子集返回链接的边框(LVGS_SUBSETED,组的状态LVGROUP看结构,成员state).提供此标志,以便访问性应用程序可以定位链接.

 

返回值

 

返回CTRUE如果成功,或FALSE否则.

 

最低操作系统

 

Windows Vista.

 

引用文件

 

CommCtrl.bi