Because I used a DLL in QQ, this DLL is a COM object, named ImageOle.dll. If you want to ask me which of the above I used to display GIF, my answer may be "none". If you do not care about the size of your application, GDI+ can be your choice. If you do not know how to display a GIF, you can get the Gif89a source code or CPictureEx source code. This COM object can be developed using ATL. Using the codeįirst we need a COM object to display a GIF and for it to be inserted in the richedit. Then what we can see will be the emoticons. What we want to see is animated emoticons! So we display the GIF in the COM object. So we insert a COM object into the CRichEditCtrl instance, then what we can see will be the COM object. But CRichEditCtrl can display a COM object, then what can a COM object do? Nearly anything. Ĭan CRichEditCtrl display a dynamic GIF? Of course not. If we just need to display static emoticons, you can refer to Insert any HBITMAP (Bitmap) in your RichEdit Control. In QQ, it uses GIFs as emoticons, so the user can customize the emoticons by changing the image, in fact, in QQ, we can send any image to a friend, and it can set to be an emoticon. :) Backgroundįirst, how does MSN Messenger show animated emoticons? In MSN Messenger, it uses PNG files as emoticons, every PNG image shows a list of frames for a whole animation. After I read some code about RichEdit and COM, and after many tests on QQ and MSN Messenger, I got the code and put it on my blog on CSDN. In China, there is another famous messenger called QQ (the former OICQ) that can display GIFs as emoticons. Most of us know that in MSN Messenger, while chatting, we can insert animated emoticons in the chat window. Download ImageOle.dll - 21 Kb (remember to register it).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |