Click to See Complete Forum and Search --> : Color of edit box


Tom Labotka
July 1st, 1999, 08:30 AM
How can I change the color of an edit box?

Franky Braem
July 1st, 1999, 08:33 AM
Use the WM_CTLCOLOR-message.

Cesario Simões
July 1st, 1999, 09:37 AM
Your dialog can trap the WM_CTLCOLOR message.
Look up the MFC Help file notes for CWnd::OnCtlColor().
Before a control is about to paint itself, the parent
window receives a chance to set its own default text color and background brush.

Also, check out the Knowledge Base article Q117778,
"Changing the Background Color of an MFC Edit Control."


Cesario Simões, Jr.