CTabCtrl::DeleteItem

Rimuove l'elemento specificato da un controllo tab.

BOOL DeleteItem(
  int nItem 
);

Parametri

  • nItem
    Valore in base zero dell'elemento da eliminare.

Valore restituito

Diverso da zero se ha esito positivo; in caso contrario 0.

Esempio

// 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);   
}

Requisiti

Header: afxcmn.h

Vedere anche

Riferimenti

Classe di CTabCtrl

Grafico della gerarchia

CTabCtrl::DeleteAllItems