Export (0) Print
Expand All
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

Show:
© 2014 Microsoft