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.
void SetItemCount( int nItems );
Header File | Afxcmn.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CListCtrl Overview, CListCtrl Member Functions, Control Classes, CListCtrl::GetItemCount, CListCtrl::GetSelectedCount