如何加载GIF图像? [英] How to load a GIF image?
本文介绍了如何加载GIF图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以使用下面的代码加载要在静态控件中显示的位图图像。如果我想在静态控件中显示GIF图像,我该如何加载GIF图像?
I can load a bitmap image to be displayed in a static control with the code below. If I want to display a GIF image in the static control, how can I load a GIF image?
提前致谢。
HBITMAP ctrlBitmap(NULL);
ctrlBitmap = (HBITMAP)::LoadImage( AfxGetResourceHandle(),
MAKEINTRESOURCE(IDB_THICKNESSXY),
IMAGE_BITMAP,
0,
0,
LR_DEFAULTSIZE | LR_CREATEDIBSECTION);
推荐答案
CImage类(也可以使用MFC。
And the CImage class (MFC not required) is also available.
这篇关于如何加载GIF图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文