CTabCtrl::DeleteItem

更新 : 2007 年 11 月

タブ コントロールからアイテムを削除します。

BOOL DeleteItem(
  int nItem 
);

パラメータ

  • nItem
    削除するアイテムを 0 から始まる値で指定します。

戻り値

正常終了した場合は 0 以外を返します。それ以外の場合は 0 を返します。

使用例

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

必要条件

ヘッダー : afxcmn.h

参照

参照

CTabCtrl クラス

階層図

CTabCtrl::DeleteAllItems

その他の技術情報

CTabCtrl のメンバ