
Change Title Bar Text of CPropertySheet
For the current page use SetWindowText on the CPropertySheet and as
Rajesh said, if you are setting for the other tabs other than the
current one, just change tab text..
Following code will work for all the situations..
BOOL CWizardSheet::SetPageTitle (int nPage, LPTSTR pszText) {
CPropertyPage *pPage = GetPage (nPage);
CTabCtrl* pTab = GetTabControl();
ASSERT (pTab);
if (GetActivePage() == pPage)
SetWindowText (pszText); //If its the active page
//If its not the active page, just set the tab item
TC_ITEM ti;
ti.mask = TCIF_TEXT;
ti.pszText = pszText;
VERIFY (pTab->SetItem (nPage, &ti));
return TRUE;
Quote:
}
> >How can I change the title bar text of a propertysheet in wizard mode?
> >Thanks for help
> >Guenther Raunigg
--
Girish Bharadwaj
Software developer
http://members.tripod.com/~GBharadwaj/index.html