Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear friends,

I'm developing a plugin for an MFC based software using it's C++ SDK.

I want to add Ribbon to the software and I'm sure that it is possible.
So I have started by something like that:

C#
BOOL CMyPlugin::InitInstance()
{
    CWinAppEx::InitInstance();

    AfxEnableControlContainer();

    CWnd* pWnd = SDKApp().m_pMainWnd;
    if( NULL == pWnd)
        return 0;

    m_wndRibbonBar.Create(pWnd);
    m_wndRibbonBar.LoadFromResource(IDR_RIBBON1);

    return true;
}


but since the software has used CFrameWnd, CMFCRibbonBar::CreateEx return FALSE.

Would you please help me?

Thanks,
mochenoo
Posted
Comments
Richard MacCutchan 6-Feb-14 10:22am    
Since you know that is the reason for the error, you also know how to fix it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900