A property sheet, when ran, consists of a property sheet object (the parent), a collection of property page objects (individual dialogs) and a tab control used to switch between the pages. During the first creation stage, the tab texts are taken from the dialog template titles. Changing these pre-build will alter the tab texts. During run-time, you can change the title by first getting the property sheet object, then asking for the tab control via GetTabCtrl. A CTabCtrl class has a method called SetItem that takes the index of the page and a TCITEM structure. Assuming in the following example, that m_wndPropertySheet was a pointer to CPropertyPage class, this code fragment will alter the text of the first tab
// Get the tab control
CTabCtrl* m_ptrTab = m_wndPropertySheet->GetTabCtrl();
// Construct a TCITEM structure
TCITEM ti;
ti.mask = TCIF_TEXT;
ti.pszText = "New tab text";
// Alter the text
m_ptrTab->SetItem( 0, &ti );
Hope this will help you out. Naturally, if you are unsure where the correct page is, you can use GetItem ínstead of SetItem to get the item's text and determining the index from there... -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.