LoadGif

所属分类:Windows编程
开发工具:Visual C++
文件大小:357KB
下载次数:745
上传日期:2006-08-15 10:37:33
上 传 者瀚星
说明:  目前在网上有一个CPictureEx类,用于加载GIF动画,不过该类是mfc封装类,对于不使用mfc的c++程序员来讲,不能使用。为了让该类能够让更多的人方便的使用,使其不再被局限于MFC,本人花时间改造了一下这个类,改造后,该类可以应用于任何MFC、 WTL/ATL及其它WINDOWS API编程。   由于原来的CPictureEx是继承于CStatic类,本人改造后,在CPictureEx中直接封装了一个窗口句柄HWND。   假设您在一个弹出式Dialog对话框中加载gif动画,您要做的就是在对话框中放一个控件,可以是BUTTON、STATIC等等。假设您加的这个控件的ID是IDC_FLASH,您的对话框窗口句柄是hDlg,则要使用CPictureEx,将非常简单。详情参见源代码。
(present on the Internet which is a CPictureEx category for loading GIF animation, But such is mfc Packaging category for the non-use of the c mfc speaking programmers, which can not be used. To allow such to allow more people to use, it will not be confined to the MFC. I spend time on this transformation of the type that after transformation, and these can be applied to any MFC. WTL/ATL and other Windows API programming. As the original CPictureEx inherited from CStatic category, I transform, In CPictureEx directly Packaging a window handle HWND. Suppose you in a pop-up dialog box loaded Dialog gif animation You need to be done is up in a dialog box controls can be BUTTON, STATIC, and so on. Suppose you added in the control ID is IDC_FLASH, your dialog window handle is hDlg, CPictureEx w)

文件列表:
LoadGif\CloseBook.gif (177489, 2006-07-25)
LoadGif\LoadGif.cpp (6509, 2006-07-26)
LoadGif\LoadGif.dsp (4725, 2006-07-25)
LoadGif\LoadGif.dsw (537, 2006-07-24)
LoadGif\LoadGif.h (329, 2006-07-24)
LoadGif\LoadGif.ico (1078, 2006-07-24)
LoadGif\LoadGif.rc (4048, 2006-07-25)
LoadGif\OpenBook.gif (172228, 2006-06-08)
LoadGif\PictureEx.cpp (33291, 2006-07-26)
LoadGif\PictureEx.h (7981, 2006-07-26)
LoadGif\resource.h (1084, 2006-07-25)
LoadGif\small.ico (318, 2006-07-24)
LoadGif\StdAfx.cpp (294, 2006-07-24)
LoadGif\StdAfx.h (936, 2006-07-24)
LoadGif (0, 2006-07-26)

======================================================================== WIN32 APPLICATION : LoadGif ======================================================================== AppWizard has created this LoadGif application for you. This file contains a summary of what you will find in each of the files that make up your LoadGif application. LoadGif.cpp This is the main application source file. LoadGif.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. ///////////////////////////////////////////////////////////////////////////// AppWizard has created the following resources: LoadGif.rc This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++. res\LoadGif.ico This is an icon file, which is used as the application's icon (32x32). This icon is included by the main resource file LoadGif.rc. small.ico %%This is an icon file, which contains a smaller version (16x16) of the application's icon. This icon is included by the main resource file LoadGif.rc. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named LoadGif.pch and a precompiled types file named StdAfx.obj. Resource.h This is the standard header file, which defines new resource IDs. Microsoft Visual C++ reads and updates this file. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者