Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Can I create more than one ribbon?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Can I create more than one ribbon?

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

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 886
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Can I create more than one ribbon?
    Posted: 06 June 2008 at 11:28am
I have an MDI application that provides automation for enumerating command information.
 
To implement the API, when the automation request is for a document type that is not the active document, I am creating a command bars object and then a ribbon and populating the ribbon. I have to set the site of the ribbon to avoid a crash in some CodeJock code, which I set to be the mainframe (not sure what else I can set it to). I also set the ribbon visible property to FALSE (failure to do so results in the created ribbon partially displaying at the top of, and across the entire desktop, which I suppose happens since the frame already has a command ribbon).
 
When I am done enumerating the controls, I delete the command bars object and have verified the ribbon is deleted too. I only create the temp bars and ribbon if the request is not for the current document type (otherwise I just use the frame's ribbon that is already populated for the doc type).
 
However, now I am sometimes seeing the old XP blue themed caption bar appearing over the application's current ribbon temporarily. Moving the cursor over the ribbon displays portions of the ribbon over the old blue caption bar.
 
Is it possible to have more than one ribbon whose site is the frame window? What can I do to avoid the old caption displaying over the actual ribbon the frame has added to its command bars collection?
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.109 seconds.