|
-
June 11th, 1999, 09:04 AM
#1
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=-
-
June 11th, 1999, 09:55 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|