CListView.GetSubItemRectmethod
Gets information about the rectangle that surrounds a subitem in a list-view control.
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
| Name | Description | |
|---|---|---|
hListView | Handle to the ListView control. | |
iItem | The index of the subitem's parent item. | |
iSubItem | The one-based index of the subitem. | |
nCode | A 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. | |
iSubItem | The 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