CTabCtrl::DeleteItem
탭 컨트롤에서 지정 된 항목을 제거합니다.
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