Share via


CTabCtrl::DeleteItem

BOOLDeleteItem(intnItem**);**

Return Value

Nonzero if successful; otherwise 0.

Parameters

nItem

Zero-based value of the item to delete.

Remarks

Call this function to remove the specified item from a tab control.

Example

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

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

CTabCtrl OverviewClass MembersHierarchy Chart

See Also   CTabCtrl::DeleteAllItems