How to insert Animated-GIF into a RichEdit Control by using MFC?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all
Happy valentine

I am struggling to insert an animated-gif into a CRichEditCtrl. Before I post this question here, I did some googling. And I found an article to introduce how to insert a bitmap into a RichEdit
http://www.codeguru.com/richedit/richeditrc.htm

I can use a timer/thread to replace my bitmap to show the animation. However, the screen goes blink when there are many animated-gif on it. I guess because when I repace a bitmap object, the Richedit will automatically erase the background

So, I really hope to override the OnDraw function of CRichEditCtrl, but it seems impossible to do that. Can I use OLE to embed a CStatic control into a CRichEditCtrl ? And is it possible to do that without creating an ActiveX control?

Thanks your suggestions in advance!!
 
Back
Top