Solved

Dynamically changing title of a property page in wizard mode

Posted on 1997-11-03
5
586 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
  • 4
5 Comments
 
LVL 1

Accepted Solution

by:
kburns102197 earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
thank you.

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now