Page 1 of 1

can't display gif after copying from rve to rv

Posted: Thu Mar 10, 2011 6:21 pm
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;

Posted: Fri Mar 18, 2011 8:38 pm
by Sergey Tkachenko
Call RegisterClass(__classid(TGIFImage)) one time, before the first RVF loading.