Print Page | Close Window

Backstage controls and OnCtlColor

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23943
Printed Date: 28 April 2024 at 3:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Backstage controls and OnCtlColor
Posted By: rdhd
Subject: Backstage controls and OnCtlColor
Date 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net