can't display gif after copying from rve to rv

General TRichView support forum. Please post your questions here
Post Reply
noibird
Posts: 10
Joined: Thu Feb 24, 2011 5:14 pm

can't display gif after copying from rve to rv

Post by noibird »

Hi,
I have a problem with copying content from RichViewEdit to RichView. I want to copy texts and gif from richviewedit to richview. After I running below code, texts will be copied, but gif will not be copied. How could I fix this problem?
Any help is appreciate!

Code: Select all

// gif and texts have all added in richviewdit successfully.

TStringStream		*_pCont;
_pCont = new TStringStream();
richviewedit->SaveRVFToStream(_pCont, false);
richview->AppendRVFFromStream(_pCont, 0);
richview->Format();
delete _pCont;
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Call RegisterClass(__classid(TGIFImage)) one time, before the first RVF loading.
Post Reply