Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 703
  • Last Modified:

Dynamically changing title of a property page in wizard mode

How can I change the title text of a CPropertyPage derived class when it has been added to a CPropertySheet which is in WizardMode?

I am attempting to change the text in OnSetActive() by using the SetWindowText().  It doesn't seem to have any affect.
0
brickb
Asked:
brickb
  • 4
1 Solution
 
kburns102197Commented:
1. Use The resource editor and click the DIALOG tab
2. Find the IDD_??? of the property page you wish to change (if you don't know it - select it to view it)
3. Place the mouse cursor on the property page and press the RT button and select properties - This will invoke the Dialog Properties dialog box for your property page.
4 Select the General tab and retype the text in the Caption field
   
                 OR

1.Select View,Resource Symbols to invoke the Resource symbols dialog
2. Find the correct resource id (IDD_??) , select it and DOUBLE click to get the View Symbols dialog box - press View Use button - that will also invoke the Dialog Properies dialog
3 Select the General tab and retype the text in the Caption field
0
 
kburns102197Commented:
Whoops! Maybe I misunderstood your question.  Do you want to change the Property Page title during runtime? ...kburns
0
 
kburns102197Commented:
Whoops! Maybe I misunderstood your question.  Do you want to change the Property Page title during runtime while using CPropertySheet::SetWizardMode ? Use CPropertySheet::SetTitle(
LPCTSTR lpszText, UINT nStyle=0);
0
 
kburns102197Commented:
Sorry , I can't edit the answer after submitting it.. Anyway the most important step you may me missing is to make sure that each page has the Caption property set and uses the caption to identify itself.  I think thats your problem (I apologize I could'nt take back the original answer)
0
 
brickbAuthor Commented:
thank you.

Somehow I overlooked the CPropertySheet::SetTitle() member function.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now