ListView_SetItemCountExListView_SetItemCountEx*
*Contents  *Index  *Topic Contents
*Previous Topic: ListView_SetItemCount
*Next Topic: ListView_SetItemPosition

ListView_SetItemCountEx


void ListView_SetItemCountEx(
    HWND hwndLV,
    int cItems,
    DWORD dwFlags
);

Sets the virtual number of items in a virtual list view control. You can use this macro or send the LVM_SETITEMCOUNT message explicitly.

hwndLV
Handle to a virtual list view control.
cItems
Number of items that the list view control will contain.
dwFlags
Values that specify the behavior of the list view control after resetting the item count. This value can be a combination of the following:
LVSICF_NOINVALIDATEALL The list view control will not repaint unless affected items are currently in view.
LVSICF_NOSCROLL The list view control will not change the scroll position when the item count changes.

This macro is intended only for list view controls that use the LVS_OWNERDATA and LVS_REPORT or LVS_LIST styles.

If the list view control was created with the LVS_OWNERDATA style, this macro sets the virtual number of items that the control contains.

If the list view control was created without the LVS_OWNERDATA style, the ListView_SetItemCount macro should be used.

Version 4.70


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