user1234085
user1234085

Reputation: 41

Changing the Background color of a MFC application

I am working on a very large MFC application. There are hundreds of dialogues in this application. Now, I want to change the Background color and Font size of all dialogues in MFC application. How can I do this? Whether I have to handle WM_CTLCOLOR massage for each and every dialogue or any other work around?

Note: I can not use any library like BCGSoft, Xtreme Toolkit.

Upvotes: 1

Views: 1912

Answers (1)

MarsRover
MarsRover

Reputation: 440

Create a Dialog class and handle WM_CTLCOLOR massage in that class, Now derive every other Dialog of your MFC application from this class.

Upvotes: 1

Related Questions