
Setting text and background color in CEdit
You have to override OnCtlColor() to change text color and background color.
pDC->SetTextColor() would change the text color and you should return the
brush of the color that you want the background color to be.
--
Ajay Kalra [MVP - VC++]
Note: Please post all replies to newsgroup only.
I'm wondering simply how to set the text color and background color of a
CEdit
control. I didn't see any member functions related to that in the CEdit, so
I
figured it's in a base class. All I found was CWnd::SetFont, but I don't
think
that's what I want.
Bill