Click here to Skip to main content
14,927,655 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
Hi all,
I've one dialog base application. In that I want to change the background color of my dialog box. How can I go with this? Please help me....
Updated 24-May-11 21:53pm
[no name] 25-May-11 5:31am
Use can process WM_ERASEBKGND message: fill the dialog area to your color.

case WM_CTLCOLORDLG: //for 32 bit complier
createsolidbruch(RGB(255,0,0)); //for red color
That's pretty easy and a simple google search[^] would have given you tons of examples...

This article[^] from Michael Dunn[^] will help you a lot (it also explains how to change that dialog background).


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900