This topic has not yet been rated - Rate this topic

LVM_APPROXIMATEVIEWRECT

Windows CE 3.0

This message calculates the approximate width and height required to display a specified number of items.

LVM_APPROXIMATEVIEWRECT wParam = (WPARAM)(INT) iCount;
lParam = (LPARAM) MAKELPARAM(cx, cy);

Parameters

iCount
Number of items to be displayed in the control. If this parameter is set to –1, the message uses the total number of items in the control.
cx and cy
Specify the proposed dimensions of the control, in pixels. Either parameter can beset to –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

Setting the size of the list view control based on the dimensions provided by this message can optimize redraw and reduce flicker.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Commctrl.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

ListView_ApproximateViewRect


 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.