我用了下面的方法,但是无效。
void CMainFrame::OnAddtabitem() 
{
// TODO: Add your command handler code here
TCITEM ti;
ti.mask=TCIF_TEXT;
ti.pszText=_T("item 0");
ti.cchTextMax=20;
m_TabCtrl.InsertItem(0,&ti);
ti.pszText=_T("item 1");
m_TabCtrl.InsertItem(1,&ti);
}void CMainFrame::OnReName()
{
TCITEM ti;
m_TabCtrl.GetItem(0,&ti);
ti.pszText="renamed";
m_TabCtrl.SetItem(0,&ti);
}