CListCtrl::GetItemRect

BOOLGetItemRect(intnItem**,LPRECTlpRect,UINTnCode) const;**

Return Value

Nonzero if successful; otherwise zero.

Parameters

nItem

The index of the item whose position is to be retrieved.

lpRect

Address of a structure that receives the bounding rectangle.

nCode

Portion of the list view item for which to retrieve the bounding rectangle. It can be one of these values:

  • 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 item text.

Remarks

Retrieves the bounding rectangle for all or part of an item in the current view.

CListCtrl OverviewClass MembersHierarchy Chart

See Also   CListCtrl::GetItemPosition, CListCtrl::SetItemPosition, CListCtrl::GetOrigin