Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
voidSetItemCount(intiCount );
Parameters
nItems
Number of items that the control will ultimately contain.
Remarks
This member function implements the behavior of the Win32 macro, , as described in the Platform SDK.
To set the item count for a virtual list view control, see CListCtrl::SetItemCountEx.
Example
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
CString str;
// Add 1024 items to the list view control.
pmyListCtrl->SetItemCount(1024);
for (int i=0;i < 1024;i++)
{
str.Format(TEXT("item %d"), i);
pmyListCtrl->InsertItem(i, str);
}
CListCtrl Overview | Class Members | Hierarchy Chart
See Also CListCtrl::GetItemCount, CListCtrl::GetSelectedCount