CListCtrl::SetItemCount

Call this member function to prepare a list view control for adding a large number of items.

By calling this function 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.

Syntax

void SetItemCount( int nItems );

At a Glance

Header File Afxcmn.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CListCtrl Overview, CListCtrl Member Functions, Control Classes, CListCtrl::GetItemCount, CListCtrl::GetSelectedCount