Environment: Windows NT4 SP6, Visual C++ 6 SP3
Having a property sheet inside a property page causes some problems:
The class CChildPropertyPage derived from CPropertyPage
solves the above problems. To use a child property sheet you simply use
this class instead of CPropertyPage to implement your resource.
You add the child pages in the same way as you would add pages to a normal
property sheet. See the demo project.
The example project implements the above example. It shows how to use the
child property sheet on a full page and limited by a group box. The example
is simply created with the following statements:
CPropertySheet dlg(“Test”);CChildPropertyPage Page1(IDD_PROPPAGE1);
CChildPropertyPage Page2(IDD_PROPPAGE1,0,0,IDC_GROUP);
CPropertyPage Page11(IDD_PROPPAGE2);
CPropertyPage Page12(IDD_PROPPAGE2);
CPropertyPage Page21(IDD_PROPPAGE3);
CPropertyPage Page22(IDD_PROPPAGE3);dlg.AddPage(&Page1);
dlg.AddPage(&Page2);
Page1.AddPage(&Page11);
Page1.AddPage(&Page12);
Page2.AddPage(&Page21);
Page2.AddPage(&Page22);
The CChildPropertyPage constructor takes four arguments: