資源簡介
很好用的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
評論
共有 條評論