Reputation: 893
Currently groupboxs in my application shows caption in blue color in Windows xp and black in windows 7. How to change default caption color of group box in MFC programmatically? so that it can be shown in black color in both Windows XP and Windows 7.
Upvotes: 1
Views: 3122
Reputation: 21251
Take a look at OnCtlColor(). MFC will call this before it draws the control to allow you to set the brushes.
Upvotes: 1