Discussion:
Can I change the color of text in CEditView?
(too old to reply)
workaholic
2007-01-04 09:13:51 UTC
Permalink
It is said that color of the text in CEditView can't be changed,is that
true? if I only want to write a simple editor to process document
without embeded ActiveX , should I turn to the more complex CRichEditView?
David Lowndes
2007-01-04 09:50:53 UTC
Permalink
Post by workaholic
It is said that color of the text in CEditView can't be changed,is that
true?
It can only be changed for the whole control. If you want some text in
a different colour you should use the rich edit control.

Dave
workaholic
2007-01-04 11:47:27 UTC
Permalink
Post by David Lowndes
Post by workaholic
It is said that color of the text in CEditView can't be changed,is that
true?
It can only be changed for the whole control. If you want some text in
a different colour you should use the rich edit control.
Dave
Thanks a lot!
Then how can I convert the whole texts in CRichEditCtrl to ordinary text
format, in order to be ready to be processed by subsequent programs
handling only ASCII texts?
Thanks again in advance!
David Lowndes
2007-01-04 14:38:38 UTC
Permalink
Post by workaholic
Then how can I convert the whole texts in CRichEditCtrl to ordinary text
format, in order to be ready to be processed by subsequent programs
handling only ASCII texts?
If you use GetWindowText that will return just the plain text.

Dave
workaholic
2007-01-05 07:48:39 UTC
Permalink
Thanks!

Loading...