CListCtrl::SetItemCount

This method prepares a list view control for adding a large number of items.

By calling this method before adding a large number of items, you enable a list view control to reallocate its internal data structures only once rather than every time you add an item.

At a Glance

Header file: Afxcmn.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

void SetItemCount( int nItems );

See Also

CListCtrl::GetItemCount, CListCtrl::GetSelectedCount