Causes the list-view control to allocate memory for the specified number of items or sets the virtual number of items in a virtual list-view control. This depends on how the list-view control was created. You can send this message explicitly or use the ListView_SetItemCount or ListView_SetItemCountEx macros.
Number of items that the list-view control will ultimately contain.
Version 4.70. Values that specify the behavior of the list-view control after resetting the item count. This value can be a combination of the following:
The list-view control will not repaint unless affected items are currently in view.
The list-view control will not change the scroll position when the item count changes.
Returns nonzero if successful, or zero otherwise.
If the list-view control was created without the LVS_OWNERDATA style, sending this message causes the control to allocate its internal data structures for the specified number of items. This prevents the control from having to allocate the data structures every time an item is added.
If the list-view control was created with the LVS_OWNERDATA style (a virtual list view), sending this message sets the virtual number of items that the control contains.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
Build date: 11/16/2013