我测试的可以的, 资源中添加了一个IDD_PROPPAGE_LARGE 对话框资源 BOOL CDlgTestDlg::OnInitDialog() { CDialog::OnInitDialog(); CPropertySheet st(_T("Test"), this); CPropertyPage pg(IDD_PROPPAGE_LARGE); st.AddPage(&pg); st.DoModal(); return TRUE; // 除非将焦点设置到控件,否则返回 TRUE }
BOOL CDlgTestDlg::OnInitDialog() { CDialog::OnInitDialog(); CPropertySheet st(_T("Test"), this); CPropertyPage pg(IDD_PROPPAGE_LARGE); st.AddPage(&pg); st.DoModal(); return TRUE; // 除非将焦点设置到控件,否则返回 TRUE }
CPropSheet 至少得加入一个 CPropertyPage 页面
2,585
社区成员
18,435
社区内容
加载中
试试用AI创作助手写篇文章吧