CHeaderCtrl::DeleteItem

BOOL DeleteItem( int nPos );

Return Value

Nonzero if successful; otherwise 0.

Parameters

nPos

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

Remarks

Deletes an item from a header control.

Example

// The pointer to my header control.
extern CHeaderCtrl* pmyHeaderCtrl;

int nCount = pmyHeaderCtrl->GetItemCount();

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

CHeaderCtrl OverviewClass MembersHierarchy Chart

See Also   CHeaderCtrl::InsertItem