I want to change the dialog text while as the new dialog is being created. I tried SetWindowText("yada"). Doesnt seem to work. How can I do this? And do I do it somwhere like OnInitDialog()?
Do I need to call something to refresh the window then? Nothing happens. Also... I actually inherit from CPropertyPage and not CDialog, Because I am using it as a tab.
Note that in a propertysheet, he tabs shown for each page is a tab control window. So you would have to manipulate the tab control's items. That is the reason why , even if SetWindowText won't fail, it has no effect on the appearance on the tabs.
What you need to do is something like this. From MSDN sample:
When you want to change the text, say in OnInitDialog()...( you could do it any time after the property page is created )
Bookmarks