Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - [Closed] Common Controls / Change Theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Closed] Common Controls / Change Theme

 Post Reply Post Reply
Author
Message
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Topic: [Closed] Common Controls / Change Theme
    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
Back to Top
Simon HB9DRV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 July 2005
Location: Switzerland
Status: Offline
Points: 458
Post Options Post Options   Thanks (0) Thanks(0)   Quote Simon HB9DRV Quote  Post ReplyReply Direct Link To This Post Posted: 12 September 2006 at 4:01am
Found for myself:

[1] SendMessage(TBM_CLEARSEL, 0, 0);
[2] Invalidate(FALSE);
Simon HB9DRV
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.156 seconds.