CListCtrl::DeleteItem
Deletes an item from a list view control.
BOOL DeleteItem(
int nItem
);
Параметры
- nItem
Specifies the index of the item to be deleted.
Возвращаемое значение
Nonzero if successful; otherwise zero.
Пример
int nCount = m_myListCtrl.GetItemCount();
// Delete all of the items from the list view control.
for (int i=0; i < nCount; i++)
{
m_myListCtrl.DeleteItem(0);
}
Требования
Header: afxcmn.h