CTabCtrl::DeleteItem
从的选项卡控件中移除指定的项目。
BOOL DeleteItem(
int nItem
);
参数
- nItem
删除项的从零开始的值。
返回值
非零,如果成功;否则为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);
}
要求
Header: afxcmn.h