Contents Index Topic Contents | ||
Previous Topic: ListView_GetStringWidth Next Topic: ListView_GetTextBkColor |
ListView_GetSubItemRect
BOOL ListView_GetSubItemRect( HWND hwndLV, int iItem, int iSubItem, int code, LPRECT lpRect );Retrieves information about the rectangle that surrounds a subitem in a list view control. You can use this macro (recommended) or send the LVM_GETSUBITEMRECT message explicitly. This macro is intended to be used only on list view controls that use the LVS_REPORT style.
- Returns nonzero if successful, or zero otherwise.
- hwndLV
- Handle to a list view control.
- iItem
- Index of the subitem's parent item.
- iSubItem
- The one-based index of the subitem.
- code
- Portion of the list view subitem for which to retrieve the bounding rectangle information. This value can be one of the following:
LVIR_BOUNDS Returns the bounding rectangle of the entire item, including the icon and label. LVIR_ICON Returns the bounding rectangle of the icon or small icon. LVIR_LABEL Returns the bounding rectangle of the entire item, including the icon and label. This is identical to LVIR_BOUNDS. - lpRect
- Address of a RECT structure that receives the subitem bounding rectangle information.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.