We help IT Professionals succeed at work.

Check out this week's podcast, "Dairy Farms to Databases: Community's Hand in Technology"Listen Now

x

Dynamically changing title of a property page in wizard mode

brickb
brickb asked
on
846 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.
Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Whoops! Maybe I misunderstood your question.  Do you want to change the Property Page title during runtime? ...kburns
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);
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)

Author

Commented:
thank you.

Somehow I overlooked the CPropertySheet::SetTitle() member function.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.