CPropertyPage
-
Hi, i have a MFC Dialog with a CPropertySheet in it. The CPropertySheet is made of 3 CPropertyPages, and one the these Pages holds a button, which, if pressed shall activate another CPropertyPage. Until now, i realized it in a very ugly way. I have stored the pointers of the CPropertySheet and the Page ,which should be activted, at OnInitDialog(). But there must be an easier way to do this. I need this pointers in a functionen which depends to that CPropertyPage, holding the Button. Does there a function extist, which can bring me the pointer of the CPropertySheet? Thanks in advance!
-
Hi, i have a MFC Dialog with a CPropertySheet in it. The CPropertySheet is made of 3 CPropertyPages, and one the these Pages holds a button, which, if pressed shall activate another CPropertyPage. Until now, i realized it in a very ugly way. I have stored the pointers of the CPropertySheet and the Page ,which should be activted, at OnInitDialog(). But there must be an easier way to do this. I need this pointers in a functionen which depends to that CPropertyPage, holding the Button. Does there a function extist, which can bring me the pointer of the CPropertySheet? Thanks in advance!
CPropertySheet* pSheet = (CPropertySheet*)GetParent(); ASSERT_KINDOF(CPropertySheet, pSheet); Then pSheet will be having the Ans for ur query Thanx TAKE CARE