LVM_APPROXIMATEVIEWRECTLVM_APPROXIMATEVIEWRECT*
*Contents  *Index  *Topic Contents
*Previous Topic: List View Control Messages
*Next Topic: LVM_ARRANGE

LVM_APPROXIMATEVIEWRECT


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

Calculates the approximate width and height required to display a given number of items. You can send this message explicitly or use the ListView_ApproximateViewRect macro.

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
Proposed dimensions of the control, in pixels. Either parameter can be set to -1 to allow the message to use the current width or height value.

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

Version 4.70


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.