다음을 통해 공유


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

Concepts

CHeaderCtrl Class

CHeaderCtrl Members

Hierarchy Chart

CHeaderCtrl::InsertItem