Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - Backstage controls and OnCtlColor
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Backstage controls and OnCtlColor

 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: 865
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post Topic: Backstage controls and OnCtlColor
    Posted: 21 January 2020 at 12:23pm
The CXTPRibbonBackstagePage::OnCtlColor sets the text color. We have some checkboxes on such a page but the text color doesn't change when we change the theme.

I have had to call SetWindowTheme to turn off the window theme. But, our check boxes then look old.

We use backstage labels and buttons. But, I don't see a way to make a backstage button a check button. And, I can't use a CXTPControlCheckBox since it is not a CWnd. I make sure theme changes are applied by calling SetTheme on those controls.

How would I go about getting a checkbox that reacts to theme changes on a backstage page? Am I missing something regarding the backstage button class that would make it a check button?
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.125 seconds.