Click to See Complete Forum and Search --> : RichEdit Control
ca_abarro
October 6th, 1999, 03:49 AM
How can I change the background of a block of text in RichEditBox Control, just the background of the text and not the entire background of the control?
Chriztholeupithecus Abharroniuz
senthil
October 8th, 1999, 05:06 PM
You can use the SelColor property to change the color of the selected text.
Rich.SelColor = RGB(0, 255, 0)
ca_abarro
October 9th, 1999, 08:41 PM
I appreciate the help....but Selcolor(RGB) changes only the forecolor
of the text.....What I want to change is the background....thx!!!
Chriztholeupithecus Abharroniuz
xiangdong
January 31st, 2001, 02:29 AM
send a message of EM_SETCHARFORMAT to it,
lparam = a pointer to a CHARFORMAT2 structure.
bill brave
April 26th, 2001, 05:19 AM
I have a problem as yours.
I must use .SelRTF and .TextRTF property and then insert "\Highlightn" and "\highlight0" keyword before and after text you want to highlight.
If you interested in this way, I can send source code to you.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.