Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Problem with ribbon bar background
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with ribbon bar background

 Post Reply Post Reply
Author
Message
Sergio View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 September 2006
Status: Offline
Points: 209
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sergio Quote  Post ReplyReply Direct Link To This Post Topic: Problem with ribbon bar background
    Posted: 19 December 2017 at 6:28am
Hello,

We just installed the MFC Toolkit Pro version 18.2.0 and we now have a strange background in our ribbon bar used inside of a MDI child window:



We would like to remove the 2 extra bands colors (black and dark gray) from the background which should be flat, as we have no tabs.

We currently initialize it using the following lines of code (not in the mainframe but in the MDI child frame):

m_pRibbonBar = (CXTPRibbonBar*)pChild->GetCommandBars()->Add(_T("The Ribbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));
m_pRibbonBar->EnableFrameTheme(FALSE);
m_pRibbonBar->EnableDocking(0);
m_pRibbonBar->ShowQuickAccess(FALSE);
m_pRibbonBar->SetShowGripper(FALSE);
m_pRibbonBar->ShowExpandButton(FALSE);
m_pRibbonBar->SetTabsVisible(FALSE);
m_pRibbonBar->ShowCaptionAlways(FALSE);
m_pRibbonBar->SetOwner(pWndToReceiveButtonClickEvents);

How can we have two different ribbon bars? Because the following line of code will affect all the ribbon bars, and we just want to remove the background image from the MDI document window, not both of them:

XTPSetOfficeSetBackImage(pChild->GetCommandBars(), XTPNone);

Please help us, thanks.

Regards
Sergio
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.