Sdílet prostřednictvím


CTabCtrl::DeleteItem

Odstraní zadanou položku z ovládacího prvku karta.

BOOL DeleteItem( 
  int nItem  
);

Parametry

  • nItem
    Položka odstranit hodnotu od nuly.

Vrácená hodnota

Nenulová hodnota, pokud je úspěšná. jinak 0.

Příklad

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

Požadavky

Záhlaví: afxcmn.h

Viz také

Referenční dokumentace

Třída CTabCtrl

Graf hierarchie

CTabCtrl::DeleteAllItems