Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This macro calculates the approximate width and height required to display a specified number of items.
DWORD ListView_ApproximateViewRect(HWNDhwndLV,int cx,int cy,int iCount );
Parameters
- hwndLV
Handle to a list-view control. - iCount
Number of items to be displayed in the control. If this parameter is –1, the message uses the total number of items in the control. - cx and cy
Proposed dimensions of the control, in pixels. Either parameter can be –1 to allow the message to use the current width or height value.
Return Values
Returns a DWORD value that holds the approximate width and height needed to display the items, in pixels.
Remarks
Related message:LVM_APPROXIMATEVIEWRECT
Requirements
OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.
See Also
LVM_APPROXIMATEVIEWRECT | List-View Controls Macros
Send Feedback on this topic to the authors