This message retrieves data about the bounding rectangle for a subitem in a list-view control. This message is intended to be used only with list-view controls that use the LVS_REPORT style.
LVM_GETSUBITEMRECT wParam = (WPARAM)(int) iItem; lParam = (LPARAM)(LPRECT) lpRect;
- Index of the subitem parent item.
- Long pointer to a RECT structure that receives the subitem bounding rectangle data. The members of RECT must be initialized according to the member and value relationships shown in the following tables.
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. Value Description 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.
Nonzero indicates success. Zero indicates otherwise.
Related macro: ListView_GetSubItemRect
OS Versions: Windows CE 2.0 and later.
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.