Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - How to Fully Remove the Quick Access Bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Fully Remove the Quick Access Bar

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Online
Points: 654
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: How to Fully Remove the Quick Access Bar
    Posted: 11 February 2015 at 8:39am
I thought that calling pRibbonBar->ShowQuickAccess(FALSE); would remove the Quick Access Bar, but it seems that the area where it should be is still there:



How can I get rid of this space. I do not want to enable Frame Theme.

-cpede
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2015 at 8:36am
Hello,

That space is not used only for QuickAccess controls. For example run RibbonSample  and select picture in document. In that space you can see "Picture tools" under context ribbon tab  "Picture format".

You can use "Frame Theme" to show that  context ribbon tab in application's caption area. For example in the same sample button Options->"Frame Theme".

Regards,
 Oleksandr Lebed
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Online
Points: 654
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2015 at 9:47am
Ok, I see.

The problem is that when I use EnableFrameTheme the Caption Bar and the Ribbon will get a gradient fill, and I don't want that.

Then I believe that I can set CXTPCommandBarsFrameHook::m_bAllowDwm = FALSE; but this seems not to have any effect? 

I'm deriving from CXTPMDIFrameWnd and I can see in the RibbinMDISample this is also omitted, whereas it is in the RibbonSample with a single view you can set Dwm.

Or is it the order I do things?

-cpede
Product: Xtreme ToolkitPro (22.1.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)
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.141 seconds.