有没有方便的方法在对话框上显示gif图片?
如果是bmp或者ico是可以直接以资源方式在picture控件显示,但是gif格式vc不认。

解决方案 »

  1.   


    先用画图板把gif图片另存为bmp格式就行了,然后再到vc里面去添加资源
      

  2.   

    但是gif类似于icon,可以有mask(屏蔽背景色),而bmp没有,
      

  3.   

    vc只支持256色的位图,gif转换为bmp后,再导入VC中,图象会失真
      

  4.   

    不对,导入vc的bmp是可以24位色的,只是不能在vc中编辑,倒是icon好像是只有256色,
      

  5.   

    哦?flash文件又如何显示呢?请教!分可以再加的。
      

  6.   

    Use CPictureEx class (could be found in www.codeguru.com)
    // 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()
    //  
      

  7.   

    动画gif怎么在对话框中显示?
      

  8.   

    楼上的去www.codeproject.com 搜索 CPictureEx