ListView_GetSubItemRectListView_GetSubItemRect*
*



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.

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_BOUNDSReturns the bounding rectangle of the entire item, including the icon and label.
LVIR_ICONReturns the bounding rectangle of the icon or small icon.
LVIR_LABELReturns 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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.