由CPropertySheet派生出一个新类
CPS::CPS(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
   AddPage(&first);
    AddPage(&second);
}然后oid CMainFrame::Ontestps() 
{
CPS ps;//该行出现“no appropriate default constructor available”错误
ps.DoModal();
}