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

    Is possible to access from the sheet to one member variable of one page ?

    Hi,

    I have a property sheet, and in each page I have a boolean telling me if there is something changed ( to ask before close to save), is an easy way to access from the sheet to that members of the page ( to ask before close the sheet), or may send messages to do this or have it all in the main sheet ?

    Thanks, Bye !
    Braulio


  2. #2
    Join Date
    May 1999
    Posts
    116

    Re: Is possible to access from the sheet to one member variable of one page ?


    CXxxxx::XxxXxx()
    {
    CPropPage1 *pProp = (CPropPage1 *)propSheet.GetPage(1);
    if ( pProp && pProp->m_bMustSave )
    m_bPromptSave = true;
    CPropPage2 *pProp2 = (CPropPage2 *)propSheet.GetPage(2);
    if ( pProp2 && pProp2->m_bMustSave )
    m_bPromptSave = true;
    }




    Or alternativly you could get the PropertyPage to set the information into the PropertySheet. The page can access the sheet by calling GetParent()



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