Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ListView_SetItemCount macro

Causes the list-view control to allocate memory for the specified number of items. You can use this macro or send the LVM_SETITEMCOUNT message explicitly.

Syntax


void ListView_SetItemCount(
  HWND hwndLV,
  int cItems
);

Parameters

hwndLV

Type: HWND

A handle to a list-view control.

cItems

Type: int

The number of items for which the list-view control should allocate memory.

Return value

No return value.

Remarks

If the list-view control was created without the LVS_OWNERDATA style, this macro 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), the ListView_SetItemCountEx macro should be used.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.