Customization of defaul buttons provided in PropertyPages
-
Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?
With Regards Neeraj Sinha Netstudio Pune
-
Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?
With Regards Neeraj Sinha Netstudio Pune
In wizard mode, the last property page in the set will change the 'next' button to 'finish' automatically. Check out the
PSH_WIZARD
andPSH_WIZARDHASFINISH
values for thedwFlags
value in thePROPSHEETHEADER
[^] structure.
Software Zen:
delete this;
-
In wizard mode, the last property page in the set will change the 'next' button to 'finish' automatically. Check out the
PSH_WIZARD
andPSH_WIZARDHASFINISH
values for thedwFlags
value in thePROPSHEETHEADER
[^] structure.
Software Zen:
delete this;
Well,it's correct that On the last wizard page,the NEXT button can be automatically changed to FINISH button,but I want the FINISH button on all the wizard pages right from it's first page along with the NEXT, BACK and CANCEL button at the same time.Is it possible to do so?
With Regards Neeraj Sinha Netstudio Pune
-
Well,it's correct that On the last wizard page,the NEXT button can be automatically changed to FINISH button,but I want the FINISH button on all the wizard pages right from it's first page along with the NEXT, BACK and CANCEL button at the same time.Is it possible to do so?
With Regards Neeraj Sinha Netstudio Pune
Setting the
PSH_WIZARDHASFINISH
value in thedwFlags
member of thePROPSHEETHEADER
should do that. If you are using theCPropertyPage
/CPropertySheet
MFC classes, you should be able to do something like this:CPropertySheet sheet;
sheet.m_psh.dwFlags |= PSH_WIZARD | PSH_WIZARDHASFINISH;
sheet.AddPage(...); // add your property pages
sheet.DoModal(); // run the wizardAlternatively, you can use the
SetWizardButtons
member function in theCPropertySheet
class.
Software Zen:
delete this;
-
Hi By default a property page has three buttons ie BACK,NEXT and CANCEL. Along with these buttons,I want a FINISH button also in my Property pages. How to achieve it?
With Regards Neeraj Sinha Netstudio Pune
In order to show all 3 of
Back
,Next
, andFinish
, you gotta move the buttons. Here's the Microsoft Knowledgebase page with sample code: http://support.microsoft.com/kb/q143210/[^]