|
-
December 2nd, 2003, 02:50 PM
#4
That does not work. 
Such "explanation" is not good enough ? 
How I think about it, your code does not work because the Edit box "knows" what to do with WM_PAINT and other messages.
you can subclass the edit box you created.
But for your edit box you can use the following:
MSDN:
"An edit control that is not read-only or disabled sends the
WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control...
Read-only or disabled edit controls do not send the WM_CTLCOLOREDIT message; instead, they send the WM_CTLCOLORSTATIC message. "
To TSmooth:
EM_SETBKGNDCOLOR for rich edit control.
Last edited by Caprice; December 2nd, 2003 at 02:52 PM.
Good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|