Export (0) Print
Expand All
MFC
Expand Minimize

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

Community Additions

ADD
Show:
© 2014 Microsoft