Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Doubled Title Bar when using Ribbon in XTP 18.2.0
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Doubled Title Bar when using Ribbon in XTP 18.2.0

 Post Reply Post Reply
Author
Message
Benjamin W. View Drop Down
Newbie
Newbie


Joined: 24 October 2017
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Benjamin W. Quote  Post ReplyReply Direct Link To This Post Topic: Doubled Title Bar when using Ribbon in XTP 18.2.0
    Posted: 08 January 2018 at 9:32am
Hi,

We using the following code in MainFrm:

// Get a pointer to the command bars object.
CXTPCommandBars* pCommandBars = GetCommandBars();
EnableFrameTheme(pCommandBars);

then

CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars->Add(_T(""), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));
pRibbonBar->EnableFrameTheme();

After that -> Assert in XTPRibbonBar.cpp
Function void CXTPRibbonBar::EnableFrameTheme(BOOL bEnable)
...
ASSERT(GetFrameHook()->m_pRibbonBar == this);
...

because with XTPToolkit Version 18 there was a change in the following function:

void CXTPCommandBarsFrameHook::EnableFrameTheme(CXTPCommandBars* pCommandBars)

...
pCommandBars->SetFrameHook(this);
...

That seems to break some old Code or is that a deliberate behavior?




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.