Contents Index Topic Contents | ||
Previous Topic: List View Control Macros Next Topic: ListView_Arrange |
ListView_ApproximateViewRect
DWORD ListView_ApproximateViewRect( hwndLV, cx, cy, iCount );Calculates the approximate width and height required to display a given number of items. You can use this macro or send the LVM_APPROXIMATEVIEWRECT message explicitly.
- Returns a DWORD value that holds the approximate width and height needed to display the items, in pixels.
- hwndLV
- Handle to the list view control.
- cx and cy
- The proposed dimensions of the control, in pixels. Either parameter can be -1 to allow the message to use the current width or height value.
- 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.
Version 4.70
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.