Contents Index Topic Contents | ||
Previous Topic: LVM_GETSTRINGWIDTH Next Topic: LVM_GETTEXTBKCOLOR |
LVM_GETSUBITEMRECT
LVM_GETSUBITEMRECT wParam = (WPARAM)(int) iItem; lParam = (LPARAM)(LPRECT) lpRect;Retrieves information about the bounding rectangle for a subitem in a list view control. You can send this message explicitly or by using the ListView_GetSubItemRect macro (recommended). This message is intended to be used only with list view controls that use the LVS_REPORT style.
- Returns nonzero if successful, or zero otherwise.
- iItem
- Index of the subitem's parent item.
- lpRect
- Address of a RECT structure that will receive the subitem bounding rectangle information. Its members must be initialized according to the following member/value relationships:
Member Value top The one-based index of the subitem. left Flag value (see following). Indicates the portion of the list view subitem for which to retrieve the bounding rectangle.
Flag Value Meaning 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. Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.