Simple mistake. You have two MyPropSheet constructors. In one you have added the pages. In the second ctor, you don't add any pages. You are using the second constructor.
So instead of
code it asCode:MyPropSheets::MyPropSheets(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) { }
Code:MyPropSheets::MyPropSheets(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage) :CPropertySheet(pszCaption, pParentWnd, iSelectPage) { m_psh.dwFlags &= ~(PSH_HASHELP); AddPage( &mm_Prop1 ); AddPage( &mm_Prop2 ); SetWizardMode( ); }


Reply With Quote