Help Center

CListView.GetSubItemRectmethod

Gets information about the rectangle that surrounds a subitem in a list-view control.

WindowsmethodCListView.incdocumented

Syntax

FUNCTION GetSubItemRect (BYVAL hListView AS HWND, BYVAL iItem AS LONG, BYVAL iSubItem AS LONG, BYVAL nCode AS LONG, BYVAL prc AS RECT PTR) AS BOOLEAN
FUNCTION GetSubItemRect (BYVAL hListView AS HWND, BYVAL iItem AS LONG, BYVAL iSubItem AS LONG, BYVAL nCode AS LONG, BYREF rc AS RECT) AS BOOLEAN
FUNCTION GetSubItemRect (BYVAL hListView AS HWND, BYVAL iItem AS LONG, BYVAL iSubItem AS LONG, BYVAL nCode AS LONG) AS RECT

Parameters

NameDescription
hListViewHandle to the ListView control.
iItemThe index of the subitem's parent item.
iSubItemThe one-based index of the subitem.
nCodeA portion of the list-view subitem for which to retrieve the bounding rectangle information. This value can be one of the following: See table below.
iSubItemThe one-based index of the subitem.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Gets information about the rectangle that surrounds a subitem in a list-view control. This method is intended to be used only on list-view controls that use the LVS_REPORT style.

Reference

  • Include file CListView.inc
  • Defined in AfxNova/CListView.inc:979
  • Documented in Windows/WIndows Controls/CListView Class.md
  • Topic: CListView Class