我定义一个基于CPropertyPage的类CMyDlg ;CMyDlg *pDlg = new CMyDlg ;pDlg->Create( IDD_MYDLG , parent ) ;//这为什么不对 阿
parent是父窗口指针.

解决方案 »

  1.   

    CPropertyPage类没有Create()方法,它定义的对象只能使用在CPropertySheet类定义的对象中,
    看msdn吧
      

  2.   

    CSysConfigPage syspage;//CPropertyPage 1
    CVideoConfigPage VideoPage;//CPropertyPage 2
    CPropertySheet ps;

    ps.AddPage(&syspage);
    ps.AddPage(&VideoPage);


    ps.DoModal();
      

  3.   

    我不需要知道cpropertypage怎么用阿,
    我想知道为什么CPropertyPage 不能create一个指定父窗口的页面