Wizard and SetFinishText

I have created a wizard. I allow the finish button in different pane (it depends on what have been done).

On the first pane I can display either a finish button (if radio button 1 is checked)or the next button (if radio button 2 is checked).

I want to change the text of the finish button from "Finish" to "Open". I used "SetFinishText" function. Unfortunately in this case all the back button dissapear even if I display the next one (with SetWizardButtons).

how can i dispplay this back button after the SetFinishText. (I have already tried to use SetWizardButtons(PSWIZB_BACK | PSWIZB_NEXT); )

Thanks in advance
rgrandAsked:
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.

fstabCommented:
Looking at the MSDN documentation, I can safely say that you cannot "undo" this feature of the SetFinishText member function. Here is the excerpt :

CPropertySheet::SetFinishText
void SetFinishText( LPCTSTR lpszText );

Parameters

lpszText

Points to the text to be displayed on the Finish command button.

Remarks

Call this member function to set the text in the Finish command button. Call SetFinishText to display the text on the Finish command button and hide the Next and Back buttons after the user completes action on the last page of the wizard.

0
rgrandAuthor Commented:
fstab, tks for the answer.
So how can i change the text of the finish button?

0
abancroftCommented:
The "Finish" button is just another dialog control. So you can use:
GetDlgItem(ID_WIZFINISH)->SetWindowText("You Text Here").
0
rgrandAuthor Commented:
abancroft,
send me an answer and you've got the points!

Thanks a lot!
0
abancroftCommented:
See comment.
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
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.