
How to change background color of a dynamically created CEdit control
It should work. Do you have the ON_WM_CTLCOLOR() entry in the message map
of the view?
--
Ajay Kalra [MVP - VC++]
Note: Please post all replies to newsgroup only.
Quote:
> In a CView, I dynamically created a CEdit control as the CView's child. I
> try to catch the message WM_CTLCOLOR by override the OnCtlColor funtion in
> my CView derived view, but it doesn't work.