This macro retrieves information about the rectangle that surrounds a subitem in a list-view control. This macro is intended to be used only on list-view controls that use the LVS_REPORT style.
BOOL ListView_GetSubItemRect( HWND hwndLV, int iItem, int iSubItem, int code, LPRECT lpRect );
Handle to a list-view control.
Index of the subitem's parent item.
One-based index of the subitem.
Portion of the list-view subitem for which to retrieve the bounding rectangle information. It is one of the following values.
Returns the bounding rectangle of the entire item, including the icon and label.
Returns the bounding rectangle of the icon or small icon.
Returns the bounding rectangle of the entire item, including the icon and label. This is identical to LVIR_BOUNDS.
Long pointer to a RECT structure that receives the subitem bounding rectangle information.