Property Sheet Wizard Button Labelling

Hi

I'm writing an SDI application with a Wizard I've created using a Property Sheet and PropertyPages.

Is there a way, at runtime, to change the labelling of Next and Previous etc.

John
IssacJonesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

alb66Commented:
Try this:

You can call this from a mothod of a CProportiPage;

GetParent()->GetDlgItem(ID_WIZBACK)->SetWindowText( "Pluto" );
GetParent()->GetDlgItem(ID_WIZNEXT)->SetWindowText( "Pippo" );
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IssacJonesAuthor Commented:
Hi - I only put partially because you didn't specify which method it should be called from. Suppose I wanted the buttons to change text on different pages. Where would the best place to put the code?
0
alb66Commented:
mmmh, this is a new question...
Anyway you can override OnSetActive and change button text from there. Remember to call call the default version (CPropertyPage::OnSetActive) before any other processing is done
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.