Share via


CTabCtrl::DeleteItem

Removes the specified item from a tab control.

BOOL DeleteItem( 
  int nItem  
);

Parameters

  • nItem
    Zero-based value of the item to delete.

Return Value

Nonzero if successful; otherwise 0.

Example

// This example assumes that there is a CTabCtrl member of the 
// CTabDlg class named m_TabCtrl.  On a button handler 
// called OnDeleteItem of the dialog box the tab control will 
// delete the 0 indexed item. 

void CTabDlg::OnDeleteItem()
{
   // Delete the first item in the tab control.
   m_TabCtrl.DeleteItem(0);   
}

Requirements

Header: afxcmn.h

See Also

Reference

CTabCtrl Class

Hierarchy Chart

CTabCtrl::DeleteAllItems