CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    3

    DataPropertypage - sheet



    How do I get a pointer to the propertysheet from within a propertypage.



  2. #2
    Join Date
    Mar 1999
    Posts
    8

    Re: DataPropertypage - sheet



    Declare the property sheet in a header file, then refer to it. For example:


    //mainfrm.h


    CPropertySheet* m_pSheet;


    // mainfrm.cpp


    m_pSheet.AddPage(&Page1);

    m_pSheet.AddPage(&Page2);


    // page1.cpp

    int nIndex = ((CMainFrame* )AfxGetMainWnd())->m_pSheet->GetActiveIndex();




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