Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Doubled non-client area v2.82 Collapse All
Subject Author Date
Eugene Wine Feb 5, 2008 - 10:18 AM

When I use ribbon bar I have doubled non-client area on the start of my application.
I have

class CMainFrame : public CExtNCW<CFrameWnd>
{
public:
CExtRibbonBar m_wndRibbonBar;
};

and

CMainFrame::OnCreate
{
...
    CExtRibbonNode pRibbonNode = new CExtRibbonNode;
    CExtRibbonNodeTabPageCollection * pRibbonNodeTabPageCollection = new CExtRibbonNodeTabPageCollection();
    pRibbonNode->InsertNode(NULL, pRibbonNodeTabPageCollection);
...
    m_wndRibbonBar.SetButtons(pRibbonNode);
    VERIFY(m_wndRibbonBar.MenuInfoGetDefault()->AccelTableLoad(IDR_MAINFRAME));
    VERIFY(m_wndRibbonBar.Ribbon_FileButtonGet()->m_iconForLargeMode.m_bmpNormal.
        LoadBMP_Resource(MAKEINTRESOURCE(IDB_KL_SMALL)));

    m_wndRibbonBar.CustomizeStateLoad(
     theApp.m_pszRegistryKey,
     theApp.m_pszProfileName,
     theApp.m_pszProfileName);

    m_wndRibbonBar._RecalcPositionsImpl();
    m_wndRibbonBar.UpdateWindow();
    m_wndRibbonBar.Invalidate();
}

I have snapshot. If you want to get it please write te e-mail where to send it.

Technical Support Feb 6, 2008 - 1:35 AM

We received similar reports from our customers but in all the cases this issue was fixed by reviewing a customer project and comparing it with our RibbonBar sample and without our help. We have never been able to reproduce it. You can send us a stripped version of your project with the UI code part only so we can check what is wrong.

Eugene Wine Feb 5, 2008 - 10:19 AM

How to fix this bug?