srajeshnkl
srajeshnkl

Reputation: 893

How to change default caption color of group box in MFC programmatically?

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

Answers (1)

GazTheDestroyer
GazTheDestroyer

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

Related Questions