Changing text color in a CEdit box 
Author Message
 Changing text color in a CEdit box

Quote:

> Is it possible to change the color of text in a CEdit text box?  I managed
> to change the font using SetFont(), but I haven't found a way of changing
> the colors.

> Devin

See the article on the URL below about exactly that.

Cecil

--
Cecil Galbraith

Free programmer's utilities and MFC tips at
http://www.*-*-*.com/ ~cgalbrai



Tue, 08 Feb 2000 03:00:00 GMT  
 Changing text color in a CEdit box

You need to handle the OnCtlColor message.  IF the message is for an
edit control, then you need to see if its your edit control (compare the
passed in control ID with the actual control ID) and set the text color,
you must return a HBRUSH as well

--
Author for Visual C++ Devloper          http://www.pinpub.com/vcd/



Tue, 08 Feb 2000 03:00:00 GMT  
 Changing text color in a CEdit box

Is it possible to change the color of text in a CEdit text box?  I managed
to change the font using SetFont(), but I haven't found a way of changing
the colors.

Devin



Tue, 08 Feb 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

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

2. Question on changing text color in CEdit Control

3. change text color in CEdit

4. how to change the text color of a CEdit or static control

5. Changing the color of the selected text in a CEdit control

6. CEdit box ** CEdit box ** CEdit box

7. Change the background color of a dialog box and change text color of Edit Box, Static Text, Rich Edit

8. How to change the color,size,font of text in a dialog box

9. Help, VC++ Edit Box: change the text color

10. Changing font color in static text box

11. How to change text color of edit box?

12. How to change the color,size,font of text in a dialog box

 

 
Powered by phpBB® Forum Software