Share via


CListCtrl::GetViewRect

Retrieves the bounding rectangle of all items in the list view control.

BOOL GetViewRect( 
   LPRECT lpRect  
) const;

Parameters

  • lpRect
    Address of a RECT structure.

Return Value

Nonzero if successful; otherwise zero.

Remarks

The list view must be in icon view or small icon view.

Requirements

Header: afxcmn.h

See Also

Reference

CListCtrl Class

Hierarchy Chart

CListCtrl::GetTopIndex