If anyone knows how to customize the Wizard buttons in CPropertySheet beyond
what is documented I would really appreciate. F.e., is there a way to
display Finish(with changed text) button along with Back and Next buttons?
This is very important.
I think that you should be able to use a PropertSheet.
To change the text for the finish button use SetFinishText. Any further
changes you could inherit from CPropertyPage and put any customization in
there. Wrox's "Visual C++ 4.0 Masterclass" has some good examples of this.
See also the codeguru.com page.
To get the Application to look like a wizard you can create an AppWizard
Dialog based app. Delete the dialog and add some pages. Change the
initinstance to make the PropertySheet the main frame
CPropertySheet sheet("Sheet Name");
Page1 page1;
Page2 page2;
Page3 page3;
Page4 page4;
m_pMainWnd = &sheet;
sheet.AddPage(&page1);
sheet.AddPage(&page4);
sheet.AddPage(&page2);
sheet.AddPage(&page3);
sheet.SetWizardMode();
int nResponse = sheet.DoModal();
Before property sheets (16 bit) I had to create and manage dialog pages for
a wizard by hand, this is much much easier.
Hope this helps
Leah
Alex Agranov <alex_a...@cc.mcafee.com> wrote in article
<#YsSgN1M...@uppssnewspub05.moswest.msn.net>...
Alex,
Have a look at Knowledge Base article Q143210 "How to Add the Finish
Button to a Wizard Property Sheet".
Dave
----
Address is altered to discourage junk mail.
Remove ".---" for the real address.
http://www.bj.co.uk