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;
    }

posted @ 2019-02-12 17:09  伟大的厨师  阅读(401)  评论(0编辑  收藏  举报