Solved

Dynamically changing title of a property page in wizard mode

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

617 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