Change text color and background color in CEditView 
Author Message
 Change text color and background color in CEditView

Hi All,

I have an MDI application with the view class derived from
CEditView class.  I would like to be able to change the
text color and the background color of the text in the CEditView class.
What do I need to do to?

I tried catching the WM_CTLCOLOR message and change
 the text color and background color there, but it didn't work.

Thanks in advance,

Hien



Sun, 21 Jan 2001 03:00:00 GMT  
 Change text color and background color in CEditView
trap OnEraseBkgnd

--
-------------------------------------------------------
Rajesh Parikh
Microsoft Certified Solution Developer

-------------------------------------------------------

Quote:
>Hi All,

>I have an MDI application with the view class derived from
>CEditView class.  I would like to be able to change the
>text color and the background color of the text in the CEditView class.
>What do I need to do to?

>I tried catching the WM_CTLCOLOR message and change
> the text color and background color there, but it didn't work.

>Thanks in advance,

>Hien



Tue, 23 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Change a part of Background color or a part of text color from CListCtrl

2. CEditView Background Color & Font Color :: MFC

3. Changing background color in a CEditView

4. Problem changing CEditView background color.

5. Change background color of CEdit in CEditView

6. Changing background color of Edit control in CEditView

7. Changing Background Color of CEditView

8. Background Color, Text Color

9. Background color and text color in menu

10. set the text color and the background color of a Control Cbutton

11. changing background color of the text

12. How to change background and text color of CPropertySheet

 

 
Powered by phpBB® Forum Software