Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - prohibit second color in a ribbon theme status bar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

prohibit second color in a ribbon theme status bar

 Post Reply Post Reply
Author
Message
rienzi View Drop Down
Groupie
Groupie


Joined: 20 August 2009
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote rienzi Quote  Post ReplyReply Direct Link To This Post Topic: prohibit second color in a ribbon theme status bar
    Posted: 09 December 2009 at 9:15pm

i set the theme of my CXTPStatusBar like this:

  XTPPaintManager()->SetTheme(xtpThemeRibbon);
 
i need the second color because somethings i wish that one of my status bars in my app frame have a different appearance from other status bars in the same frame. But sometimes i do not need the second color to paint a different colors on my status bars. Then I found that the second color can not disappear using the code below:
 
  m_wndStatusBar.SetRibbonDividerIndex(m_wndStatusBar.GetPaneCount());
 
the second color just stay on the last item of the status bar and it can not be wiped off.
Can anybody tell me how to let the second color be useless please? I still need the second color so I can not use xtpThemeOffice2007 theme instead.
 
 
I have found out a solution. I can add a indicator at the last position of the status bar with nothing in it and make it invisible, then the last indicator can be painted with the second color but users can not see it.
 
I'm wondering if there is an easier solution or not
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.016 seconds.