Re: Property Sheet and Pages
Try This,
CTabCtrl *pTab = GetTabControl();
TC_ITEM tcItem;
tcItem.mask = TCIF_TEXT;
tcItem.pszText = "Dialog Text";
pTab->SetItem(1, &tcItem);
Re: Property Sheet and Pages
Note, the 1 in SetItem is the index number to the page you want to change. For the first page I should have used 0.
Re: Property Sheet and Pages
Or you can also modify constructor of the class derived from CPropertyPage to take ID of the string. Default this ID to 0.
Initialize page object by passing appropriate string ID from string resources in a class that uses it, in class’ initializer list.
Now you can use this class to instantiate multiple pages with different tab text.