Click to See Complete Forum and Search --> : Rich Edit


Daniel Canham
June 17th, 1999, 12:42 AM
I have a problem with CRichEditCtrl class. I have two
controls in my interface, one of which is invisible.

What I am attempting to do is pull text from a database in
RTF(rich text format) and append about 20 fields together,
then display all the text into the visible one.

The invisible control is formatted with all the text from
the DB with column headings and then data right below.

My problem is that transfering data from one control to the
other (I have been forced to use the Copy() and Paste()
functions) . It s a jerry rig job but it works.

My problem is that I have no idea how to put a carriage
return or line feed into the control.

appending the hex code won't work (0x0A, 0x0D).

Also the text that I am pulling is already in RTF, but I
would also like to insert plain text as well. this causes
the control to display nothing.

SUmmary:::::

how to put a carriage return wherever I want?
how to insert plain text into an already RTF control?

Thanks,
Dan