CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 3 of 3 FirstFirst 123
Results 31 to 32 of 32

Thread: Design issue

  1. #31
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Design issue

    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:
    MyPropSheets::MyPropSheets(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
    	:CPropertySheet(pszCaption, pParentWnd, iSelectPage)
    {
    }
    code it as
    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( );
    }

  2. #32
    Join Date
    Sep 2004
    Posts
    1,361

    Re: Design issue

    DOH!

    Thanks. I didn't even notice that.

Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured