我需要在对话框中显示gif动画。最好是在按钮上。(不在按钮上也行)
请问有什么简便的方法。(因为我需要在一个窗口上显示比较多的gif动画,大该几十个)
我在vckbase上搜过,好象没有显示动画的。
能提供一个思路也行。最好有源码。先谢过了。

解决方案 »

  1.   

    我这里有源码,给出你的E_mail,我给你发一份。
      

  2.   

    to  cxjlw(老为)
    Email  [email protected]
      

  3.   

    我曾做过和你一样的东东,当时我把.gif图片分解成几个静态.bmp图,然后在程序中用定时的方法循环显示几副图片,效果不错,就是麻烦了点。
      

  4.   

    to  98440622(我们的目标是:"没有非典") 
    这样太麻烦了。我要用的gif不是程序中主要的的东东。贴静态bmp占用资源太多了.
      

  5.   

    to:cxjlw(老为) 能给我发一份吗?谢谢
    [email protected]
      

  6.   

    to cxjlw(老为)
    对不起,Email写错了。 
    给我发一份吧
    Email  [email protected]
      

  7.   

    Use CPictureEx(could be found in www.codetools.com written by Oleg Bykov [[email protected]] ) CPictureEx class.
    //
    // Picture displaying control with support for the following formats:
    // GIF (including animated GIF87a and GIF89a), JPEG, BMP, WMF, ICO, CUR
    // 
    // Written by Oleg Bykov ([email protected])
    // Copyright (c) 2001
    //
    // To use CPictureEx, follow these steps:
    //   - place a static control on your dialog (either a text or a bitmap)
    //   - change its identifier to something else (e.g. IDC_MYPIC)
    //   - associate a CStatic with it using ClassWizard
    //   - in your dialog's header file replace CStatic with CPictureEx
    //     (don't forget to #include "PictureEx.h" and add 
    //     PictureEx.h and PictureEx.cpp to your project)
    //   - call one of the overloaded CPictureEx::Load() functions somewhere
    //     (OnInitDialog is a good place to start)
    //   - if the preceding Load() succeeded call Draw()
      

  8.   

    to cxjlw(老为)
    哪个源码我以前下载,不过还是谢谢你。