Print Page | Close Window

Doubled Title Bar when using Ribbon in XTP 18.2.0

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23537
Printed Date: 19 September 2018 at 9:23pm


Topic: Doubled Title Bar when using Ribbon in XTP 18.2.0
Posted By: Benjamin W.
Subject: Doubled Title Bar when using Ribbon in XTP 18.2.0
Date 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?







Print Page | Close Window