资源简介
很好用的CPictureEx
花了积分下载的,免费提供出去,节约大家时间!
代码片段和文件信息
//////////////////////////////////////////////////////////////////////
// PictureEx.cpp: implementation of the 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 (oleg_bykoff@rsdn.ru)
// 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()
//
// You can also add the control by defining a member variable of type
// CPictureEx calling CPictureEx::Create (derived from CStatic) then
// CPictureEx::Load and CPictureEx::Draw.
//
// By default the control initializes its background to COLOR_3DFACE
// (see CPictureEx::PrepareDC()). You can change the background by
// calling CPictureEx::SetBkColor(COLORREF) after CPictureEx::Load().
//
// I decided to leave in the class the functions to write separate frames from
// animated GIF to disk. If you want to use them uncomment #define GIF_TRACING
// and an appropriate section in CPictureEx::Load(HGLOBAL DWORD). These functions
// won‘t be compiled and linked to your project unless you uncomment #define GIF_TRACING
// so you don‘t have to worry.
//
// Warning: this code hasn‘t been subject to a heavy testing so
// use it on your own risk. The author accepts no liability for the
// possible damage caused by this code.
//
// Version 1.0 7 Aug 2001
// Initial release
//
// Version 1.1 6 Sept 2001
// ATL version of the class
//
// Version 1.2 14 Oct 2001
// - Fixed a problem with loading GIFs from resources
// in MFC-version of the class for multi-modules apps.
// Thanks to Ruben Avila-Carretero for finding this out.
//
// - Got rid of waitable timer in ThreadAnimation()
// Now CPictureEx[Wnd] works in Win95 too.
// Thanks to Alex Egiazarov and Wayne King for the idea.
//
// - Fixed a visual glitch of using SetBkColor.
// Thanks to Kwangjin Lee for finding this out.
//
// Version 1.3 10 Nov 2001
// - Fixed a DC leak. One DC leaked per each UnLoad()
// (forgot to put a ReleaseDC() in the end of
// CPictureExWnd::PrepareDC() function).
//
// - Now it is possible to set a clipping rectangle using
// CPictureEx[Wnd]::SetPaintRect(const LPRECT) functio
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-07-16 08:52 PictureEx\
文件 33023 2001-11-18 13:30 PictureEx\PictureEx.cpp
文件 10523 2001-11-18 13:30 PictureEx\PictureEx.h
相关资源
- win10缺失msvcr100d.dll文件 64位
- 用VC opengl 绘制的一个房屋轮廓
- Webp格式转换工具PNG/JPG/GIF/Webp互转
- VC图像处理基本算法
- linux下将yuv转换成jpg
- LSD-直线检测源码
- 基于对话框显示,动态显示jpg.bmp等图
- vc编写UDP封装类实用
- XPButton控件及资料
- SSM框架(一) 基于eclipseJee搭建Sping
- SJF2440源码 源代码 官方发布VC++完整
- VC Socket GET_POST发送HTTP请求
- mac版本的Navcat破解版!!包能用
- 嵌入式印刷体数字识别
- JAI相机的VC使用方法设置
- 印刷体汉字识别程序VC编写
- CtabSheet源代码
- 微型伺服马达原理与控制.doc
- 远控小木马
- VCA820可控增益放大器
- PVCS Professional
- maven+ssm+shiro
- 计算机网络课程设计实验报告
- ssh项目demo
- Spring MVC +Spring + Mybatis 构建分库分表源
- Struts——一种开源MVC的实现外文文献
- 静止无功补偿器
- MVC架构模式ppt课件
- msvcp140d.dll
- VC 实现非窗口类中使用定时器的方法
评论
共有 条评论