Modifying color and font for a Dialog box (VC6.0)

I am using VC6.0 dialog edit boxes (CEdit) and buttons (CButton) and would like to control:

(1) The font being used in each of the edit field
(2) The background fill color of the edit field and the dialog box
(3) The text color

250 points for information that helps me
400-500 for code that gives me a solution  I can implement
Christopher ScheneSystem Engineer/Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Basically, this can be done by over-riding the OnCtlColor function for your dialog. There is an example here:

If you do a search for OnCtlColor at or you will find many relevant examples, e.g.:
Jaime OlivaresSoftware ArchitectCommented:
to change font just have to use SetFont() method, you can create a CFont object easily with CreatePointFont() method. Notice that would be recommended to persist your CFont object as a member of your dialog or window object, or as a global variable.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:

I am still working on my app and have not been able to get to the font or color change tasks yet.

I will try your suggestion

Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
So far, I got the font change to work.

I'll work on the color next
Christopher ScheneSystem Engineer/Software EngineerAuthor Commented:
increase poinst so I split them
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Fonts Typography

From novice to tech pro — start learning today.