1

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.

Muhammad Ummar
  • 3,541
  • 6
  • 40
  • 71
user1234085
  • 41
  • 1
  • 8
  • 1
    A quick method might be is to call `CWinApp::SetDialogBkColor`. This will change the background color (and text color) of all dialogs in your application. – Muhammad Ummar Dec 06 '12 at 06:43

1 Answers1

1

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

MarsRover
  • 420
  • 1
  • 3
  • 10