I can imagine the following way :) :
class CYourSheet : public CPropertySheet
{
CYourCtrl m_cCtrl; CMyFrameWnd* m_pcFrame; public:
CYourSheet(..)
: CPropertySheet(..)
, m_cCtrl()
, m_pcFrameCtrl(new CMyFrameWnd) {}
protected:
virtual BOOL OnInitDialog()
{
BOOL bResult(CPropertySheet::OnInitDialog());
if (GetSafeHwnd()) {
m_cCtrl.Create(..); m_pcFrame->Create(..); }
return bResult;
}
};