I am developing a wizard from the product on which my team is working. This wizard consists of following pages:
- Start Page
- Select Class
- Select Students
- Initiate job of retrieving information of these students and storing them in database.
- Finish page
- CPropertyStart
- CPropertySelectClass
- CPropertySelectStudents
- CPropertyRetrieve
- CPropertyFinish
- CPropertyStudentWizard
In this class, I have created following objects for each property page.
- CPropertyStart m_propStart;
- CPropertySelectClass m_propSelectClass;
- CPropertySelectStudents m_propSelectStudents;
- CPropertyRetrieve m_propRetrieve;
- CPropertyFinish m_propFinish;
I also have to create chm help for all pages except finish page. So I would like to disable Help button on this page only. This is how I can achieve this.
CPropertyStudentWizard::CPropertyStudentWizard (UINT nIDCaption,CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
SetWizardMode();
m_propFinish.m_psp.dwFlags &= ~PSP_HASHELP;
AddPage( & m_propStart);
AddPage( & m_propSelectClass);
AddPage( & m_propSelectStudents);
AddPage( & m_propRetrieve);
AddPage( & m_propFinish);
}