C++显示Gif图片

找了很多,介绍一个比较简单的,原来是MFC的我改成了非MFC的,使用方法:

   m_image = new ImageEx( L"d:\\loading.gif" );

    CRect rc;
    GetClientRect(rc);

    int cx = (rc.Width() - m_image->GetWidth()) / 2;

    m_image->InitAnimation(m_hWnd, CPoint(10,10));

 

下载地址:

  http://files.cnblogs.com/GnagWang/ImageEx.rar

转载于:https://www.cnblogs.com/GnagWang/archive/2010/08/16/1800805.html

你可能感兴趣的:(C++显示Gif图片)