Set text color for 1 line in a CEdit control (MultiLine) 
Author Message
 Set text color for 1 line in a CEdit control (MultiLine)

I'm using a CEdit control with multiline option to display a log file. I
want to change text color for some lines. I know how to change color of the
whole text (with WM_CTLCOLOR event), but not for a part of text.

Is it possible ?

Thanks in advance.



Mon, 27 Sep 2004 19:24:08 GMT  
 Set text color for 1 line in a CEdit control (MultiLine)

No, it's not possible. :-(

Other options include:
- using list box (with ownerdraw) or list view (with custom draw) to show
your log in color
- using HTML to render your log (refer to
http://www.pocketpcdn.com/sections/html.html to find more information)
- writing a control of your own

--
Sincerely,
Alexander


http://www.RSDN.ru - Russian Software Developer Network


Quote:
> I'm using a CEdit control with multiline option to display a log file. I
> want to change text color for some lines. I know how to change color of
the
> whole text (with WM_CTLCOLOR event), but not for a part of text.

> Is it possible ?

> Thanks in advance.



Mon, 27 Sep 2004 20:16:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Colored text in MultiLine CEdit

2. How to set text into CEdit (Multiline)

3. multiple-line CEdit set multi-line text

4. How to set multiline text in a CEdit?

5. Line Breaks don't work in Multiline CEdit control

6. CEdit Multiline Control, adding new lines.

7. CEdit multiline Get line by line ?!?

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

9. Setting text and background color in CEdit

10. how to set the color of font for a CEdit Control

11. Control position of text in single line CEdit

12. How do you set the background color of a CEdit control

 

 
Powered by phpBB® Forum Software