AppendRVFFromStream/InsertRVFFromStream can't work
Posted: Tue Mar 01, 2011 5:04 pm
Hi,
I have one richview(rv) and one richviewedit(rve), I want to copy content from richviewedit to richview. I code like this:
Neither InsertRVFFromStream nor InsertRVFFromStream can't get any content in richview. So my question is how to copy content from richviewedit to richview?(include gif image)
Any help is appreciate!
I have one richview(rv) and one richviewedit(rve), I want to copy content from richviewedit to richview. I code like this:
Code: Select all
TMemoryStream *stream = new TMemoryStream();
rve->SaveRTFToStream(stream, false);
stream->Position = 0;
rv->InsertRVFFromStream(stream, rve->ItemCount); // or rv->AppendRVFFromStream(stream,-1);
Any help is appreciate!