In order to give the software login interface an animation effect, it is decided to use GIF animation.
However, MFC does not have a standard control that can directly play GIF videos. The cpictureex class is found online. After installing a tutorial and writing the entire project, you can only display one frame of GIF. No animation effect. It turns out that the GIF resource is damaged after being added to the project using the wizard.
So I thought of dynamically loading GIF files in the program instead of adding them through a wizard.
Therefore, when loading a GIF image, use the bool cpictureex: load (lpctstr szfilename) function to specify the path and name of the loaded GIF file.
Instead of calling its reinstallation function bool cpictureex: load (lpctstr
Szresourcename, lpctstr szresourcetype );
Blog http://blog.csdn.net/shimachao/article/details/7895758 from shimachao