Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CListCtrl::ApproximateViewRect
Collapse the table of content
Expand the table of content

CListCtrl::ApproximateViewRect 

Determines the width and height required to display the items of a list view control.


CSize ApproximateViewRect(
   CSize sz = CSize(-1,
   -1
),
   int iCount = -1 
) const;

Parameters

sz

The proposed dimensions of the control, in pixels. If dimensions are not specified, the framework uses the current width or height values of the control.

iCount

Number of items to be displayed in the control. If this parameter is -1, the framework uses the total number of items currently in the control.

A CSize object that contains the approximate width and height needed to display the items, in pixels.

This member function implements the behavior of the Win32 macro, ListView_ApproximateViewRect, as described in the Platform SDK.

Community Additions

ADD
Show:
© 2015 Microsoft