Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Dynamically changing title of a property page in wizard mode

Posted on 1997-11-03
5
Medium Priority
?
685 Views
Last Modified: 2013-11-20
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
Comment
Question by:brickb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 1

Accepted Solution

by:
kburns102197 earned 400 total points
ID: 1309257
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
 
LVL 1

Expert Comment

by:kburns102197
ID: 1309258
Whoops! Maybe I misunderstood your question.  Do you want to change the Property Page title during runtime? ...kburns
0
 
LVL 1

Expert Comment

by:kburns102197
ID: 1309259
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
 
LVL 1

Expert Comment

by:kburns102197
ID: 1309260
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
 

Author Comment

by:brickb
ID: 1309261
thank you.

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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question