Compartilhar via


CHeaderCtrl::DeleteItem

Deletes an item from a header control.

BOOL DeleteItem(
   int nPos 
);

Parameters

  • nPos
    Specifies the zero-based index of the item to delete.

Return Value

Nonzero if successful; otherwise 0.

Example

int nCount = m_myHeaderCtrl.GetItemCount();

// Delete all of the items.
for (int i=0;i < nCount;i++)
{
   m_myHeaderCtrl.DeleteItem(0);
}

Requirements

Header: afxcmn.h

See Also

Reference

CHeaderCtrl Class

Hierarchy Chart

CHeaderCtrl::InsertItem

Other Resources

CHeaderCtrl Members