
Changing Caption of CPropertyPage at runtime?
Quote:
>mike,
>You can change the property page (tab) caption it like this (example
>code is a member function of the property sheet):
> TCITEM tci;
> tci.mask = TCIF_TEXT;
> tci.pszText = "New Text for this Page";
> CTabCtrl * pT = ( (CPropertySheet*)
> GetParent())->GetTabControl();
> pT->SetItem( PropPageNumber, &tci );
>Dave
Since you're using GetParent() this works in a member function of a
property page. And to change the currently selected page he could:
CTabCtrl * pT = ( (CPropertySheet*)GetParent())->GetTabControl();
PropPageNumber = pT->GetCurSel();
pT->SetItem( PropPageNumber, &tci );
... Dave