Print Page | Close Window

[Closed] Common Controls / Change Theme

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=5029
Printed Date: 29 April 2024 at 9:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Common Controls / Change Theme
Posted By: Simon HB9DRV
Subject: [Closed] Common Controls / Change Theme
Date Posted: 12 September 2006 at 3:29am
I am using the excellent support for common controls.

If I change the theme then the only way I can reliably get my controls to be repainted is to use SetFocus() for each control which is not a good solution.

GetCommandBars()->RedrawCommandBars() does not seem to be the solution, so how can I get the custom controls (Check boxes, sliders) redrawn?

I've tried RedrawWindow, Invalidate, ...



-------------
Simon HB9DRV



Replies:
Posted By: Simon HB9DRV
Date Posted: 12 September 2006 at 4:01am
Found for myself:

[1] SendMessage(TBM_CLEARSEL, 0, 0);
[2] Invalidate(FALSE);


-------------
Simon HB9DRV



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