Solved

Dynamically changing title of a property page in wizard mode

Posted on 1997-11-03
5
618 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 199
mixString challenge 36 134
Perl Awk Need Help 3 136
post4 challenge 28 113
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

679 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