I have been thinking about displaying a GIF image on the MFC dialog since last night. However, it is difficult to find a useful control and use it, however, the official website does not offer great help. There is also a lack of files. I have sorted them out here. Process
1: a total of five files are required, including 3 h and 2 CPP files,
I will add it later.
2: import the data to your own project separately. The next step is the operation.
3: In the resource design of your own DLG, add a static text box and assign the ID Wei idc_gif_animation to the text box, right-click the text box and choose ">" create Class Wizard ">" member variables ">" idc_gif_animation ". Double-click"-"And enter" m_animation "as the variable name, and select" control "as the directory ", select cstatic as the type.
4: Find cstatic m_animation in the H of the DLG and change it to cgifanimation m_animation; and add # include "gifanimation. H" to this H"
5: Add:
M_animation.loadanimatedgif ("./RES/1.gif ");
M_animation.play ();
6: compile.
Here is a description on the official website, which is similar
Http://www.codeproject.com/KB/static/gifanimation.aspx