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

    CPropertyPage and activating pages

    Hi
    I have a PropertySheet with some pages. The user does not have to select all the pages to fill all controls (default values). But if a page was not selected, the dialog is not created and the member variables are not filled. Is there any possibility to do that except making all pages active in OnInitDialog() using SetActivePage(...) and then selecting the previous active page ?

    thanks for help


    --
    -=SKULK=-

  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: CPropertyPage and activating pages

    Just before you add each page to the propertySheet do the following

    CPropterySheet ps;
    MyPropPage pp;
    pp.m_psp |= PSP_PREMATURE; // Tells the property sheet to create this page prior to activation
    ps.AddPage(&pp);


    ps.DoModal();


    HTH,
    chris


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