CBCGPPropertySheetCtrl在Create之前必须要有AddPage的页,否则会create失败。
m_wndPropSheet.AddPage(&m_Page1);
//m_wndPropSheet.AddPage(&m_Page2);
//m_wndPropSheet.AddPage(&m_Page3);
//m_wndPropSheet.AddPage(&m_Page4);
//m_wndPropSheet.AddPage(&m_Page5);
if (!m_wndPropSheet.Create(this, WS_TABSTOP | WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_VISIBLE, 0))
{
TRACE0("Cannot create property sheet control\n");
return 0;
}