CListView.SetItemCountExmethod
Sets the virtual number of items in a virtual list view.
Syntax
FUNCTION SetItemCountEx (BYVAL hListView AS HWND, BYVAL cItems AS LONG, BYVAL dwFlags AS LONG) AS LRESULT
Parameters
| Name | Description | |
|---|---|---|
hListView | Handle to the ListView control. | |
cItems | The 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: |
Return value
Returns nonzero if successful, or zero otherwise.
Description
Sets the virtual number of items in a virtual list view.
Remarks
This method 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 method sets the virtual number of items that the control contains.
If the list-view control was created without the LVS_OWNERDATA style, the SetItemCount method should be used.
Reference
- Include file
CListView.inc - Defined in AfxNova/CListView.inc:1662
- Documented in Windows/WIndows Controls/CListView Class.md
- Topic: CListView Class