CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - Cstatic
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - Cstatic - List
[
GDI-Bitmap
]
LoadGff
DL : 0
前在网上有一个CPictureEx类,用于加载GIF动画,不过该类是mfc封装类,对于不使用mfc的c++程序员来讲,不能使用。为了让该类能够让更多的人方便的使用,使其不再被局限于MFC,花时间改造了一下这个类,改造,该类可以应用于任何MFC、 WTL/ATL及其它INDOWS API编程。由于原来的CPictureEx是继承于CStatic类,改造后,在CPictureEx中直接封装了一个窗口句柄HWND。假设您在一个弹出式Dialog对话框中加载gif动画,您要做的就是在对话框中放一个控件,可以是BUTTON、STATIC等等。假设您加的这个控件的ID是IDC_FLASH,您的对话框窗口句柄是hDlg,则要使用CPictureEx,将非常简单。详情参见源代码。-ago 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. renovation of time spent on this category, transformation and can be applied to any such MFC, WTL / ATL and other INDOWS API programming. As the original CPictureEx inherited from CStatic category that after transformation, 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 would use,
Date
: 2008-10-13
Size
: 356.85kb
User
:
陈真
[
GDI-Bitmap
]
LoadGff
DL : 0
前在网上有一个CPictureEx类,用于加载GIF动画,不过该类是mfc封装类,对于不使用mfc的c++程序员来讲,不能使用。为了让该类能够让更多的人方便的使用,使其不再被局限于MFC,花时间改造了一下这个类,改造,该类可以应用于任何MFC、 WTL/ATL及其它INDOWS API编程。由于原来的CPictureEx是继承于CStatic类,改造后,在CPictureEx中直接封装了一个窗口句柄HWND。假设您在一个弹出式Dialog对话框中加载gif动画,您要做的就是在对话框中放一个控件,可以是BUTTON、STATIC等等。假设您加的这个控件的ID是IDC_FLASH,您的对话框窗口句柄是hDlg,则要使用CPictureEx,将非常简单。详情参见源代码。-ago 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. renovation of time spent on this category, transformation and can be applied to any such MFC, WTL/ATL and other INDOWS API programming. As the original CPictureEx inherited from CStatic category that after transformation, 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 would use,
Date
: 2026-01-10
Size
: 357kb
User
:
陈真
[
GDI-Bitmap
]
ctimedemo
DL : 0
一个简单的数字时钟程序,其中的date类派生于MFC CStatic 基类。- a simple digital clock program, which date class derived from MFC CStatic base class.
Date
: 2026-01-10
Size
: 42kb
User
:
李可文
[
GDI-Bitmap
]
DrawImgOnDlg
DL : 0
结合网上的代码,找到了两种全图显示的办法。 第一种是使用GDI+,同样需要使用到picture control,不过这次需要设置属性->杂项->type,选择Owner Draw类型。然后从CStatic类中派生出一个新类:CGdiPlusImgCtrl。重载DrawItem函数来实现绘制图像 可能你觉得使用GDI+麻烦,需要对GDI+环境进行初始化,打包程序又得附带gdiplus.dll。那么我介绍的第二种方法使用GDI就没这么麻烦了。 第一种是使用GDI,同样需要使用到picture control,不过这次需要设置属性->杂项->type,选择Owner Draw类型。然后从CStatic类中派生出一个新类:CGdiImgCtrl。重载DrawItem函数来实现绘制图像 -Combined with the online code, found two ways to display the whole map. The first is to use GDI+, the same need to use the picture control, but the need to set properties-> Miscellaneous-> type, select the Owner Draw type. Then derived from CStatic class in a new class: CGdiPlusImgCtrl. DrawItem function overloading to achieve the image you may feel drawn to use GDI+ trouble, need to initialize GDI+ environment, the program is again packed with gdiplus.dll. Then I use the second method described GDI no such trouble. The first is to use the GDI, the same need to use the picture control, but the need to set properties-> Miscellaneous-> type, select the Owner Draw type. Then derived from CStatic class in a new class: CGdiImgCtrl. Overloaded function to achieve the draw images DrawItem
Date
: 2026-01-10
Size
: 4.83mb
User
:
朱小明
[
GDI-Bitmap
]
ScrollBitmapWnd
DL : 0
ScrollBitmapWnd 是一个带有滚动条的CStatic子类-ScrollBitmapWnd is a static ctrl with scrolls
Date
: 2026-01-10
Size
: 4kb
User
:
gao
[
GDI-Bitmap
]
MyDraw
DL : 0
基于对话框,在CStatic text空间中显示实时曲线,数据为随机,一条曲线。-Dialog-based, real-time curve, the data is random, a curve CStatic text space.
Date
: 2026-01-10
Size
: 3.57mb
User
:
max
[
GDI-Bitmap
]
ChildCtrl
DL : 0
CListCtrl,ComboBox,CStatic,日期控件等重写的类,可能有的需要 Opencv的一些图像显示函数,.h,.CPP文件-Rewriting the class CListCtrl, ComboBox, CStatic, date controls, may require some images and some display function Opencv
Date
: 2026-01-10
Size
: 91kb
User
:
sunli
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.