Embedded CPropertySheet : HOWTO change CPropertyPage programatically ???
-
Hello to all, I have an embedded CPropertySheet inside a dialog and this sheet contains 4 pages. The user can't access the second page unless he has entered and saved a record inside the first one. So in the SecondPage::OnSetActive() I query some data members and if nothing has been entered I call the parent PropertySheet and ask it to SetActive the first page. UI wise the first page is selected but the controls displayed are still those of the second page. What call(s) do I have to make in order to display what the first page has to offer in terms of controls ???? Thanks in advance for any help ! Luc :confused:
-
Hello to all, I have an embedded CPropertySheet inside a dialog and this sheet contains 4 pages. The user can't access the second page unless he has entered and saved a record inside the first one. So in the SecondPage::OnSetActive() I query some data members and if nothing has been entered I call the parent PropertySheet and ask it to SetActive the first page. UI wise the first page is selected but the controls displayed are still those of the second page. What call(s) do I have to make in order to display what the first page has to offer in terms of controls ???? Thanks in advance for any help ! Luc :confused:
Override the OnKillActive() for the 1st propertypage and return false in no record has been written. This stops the 2nd page being activated at all. Roger Allen Sonork 100.10016 This is a multiple choice question, choose wisely Why did the hedgehog cross the road? A: To show he had guts? B: To see his flat mate?
-
Override the OnKillActive() for the 1st propertypage and return false in no record has been written. This stops the 2nd page being activated at all. Roger Allen Sonork 100.10016 This is a multiple choice question, choose wisely Why did the hedgehog cross the road? A: To show he had guts? B: To see his flat mate?
Cool. Your suggestion work fine !!! :-D