Background color of CEdit 
Author Message
 Background color of CEdit

I have a class that has a CEdit as one protected variable that i create in
my class create method.

How can i change the CEdit background color (i know i have to handle
WM_CTLCOLOR but i don't know how) ???

And how can i handle other messages from the CEdit ??



Mon, 16 Jul 2001 03:00:00 GMT  
 Background color of CEdit
Create a new CEdit-derived class and override the OnCtlColor member function.
When you get a CTLCOLOR_EDIT for the window you want, return a
brush of the color you want the background to be.  Use this class with
SubclassDlgItem or SubclassWindow and voila - a new background color in
the edit box.

HTH

: I have a class that has a CEdit as one protected variable that i create in
: my class create method.
:
: How can i change the CEdit background color (i know i have to handle
: WM_CTLCOLOR but i don't know how) ???
:
: And how can i handle other messages from the CEdit ??
:
:

--
--
/*  Andrew  */
WWW: http://www.halcyon.com/ast        



Mon, 16 Jul 2001 03:00:00 GMT  
 Background color of CEdit
how can i get some other messages like WM_PAINT, WM_LMOUSEUP and so on??


Tue, 17 Jul 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Changing Background Color of CEdit - Problem With Double Clicking On Texts

2. background color of CEdit control

3. How to change background color Of CEdit?

4. How to update the background color of CEdit

5. Background color in CEdit Control ?

6. How to change background color of CEdit?

7. Setting text and background color in CEdit

8. Background color of CEdit

9. Change background color of CEdit in CEditView

10. How to change the background color of CEdit control?

11. Win2K: static background color vs. CFormView background color

12. Background & Text color CEdit

 

 
Powered by phpBB® Forum Software