資源簡介
C++ 實現(xiàn)顯示GIF圖片!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

代碼片段和文件信息
//?showgif.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“showgif.h“
#include?“showgifDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CShowgifApp
BEGIN_MESSAGE_MAP(CShowgifApp?CWinApp)
//{{AFX_MSG_MAP(CShowgifApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CShowgifApp?construction
CShowgifApp::CShowgifApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CShowgifApp?object
CShowgifApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CShowgifApp?initialization
BOOL?CShowgifApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CShowgifDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3597??2008-11-14?13:52??showgif\ReadMe.txt
?????文件?????145760??2008-11-14?13:54??showgif\res\1.gif
?????文件???????1078??2008-11-14?13:52??showgif\res\showgif.ico
?????文件????????399??2008-11-14?13:52??showgif\res\showgif.rc2
?????文件????????684??2008-11-14?13:54??showgif\resource.h
?????文件?????166608??2008-11-14?19:37??showgif\showgif.aps
?????文件???????1061??2008-11-14?20:58??showgif\showgif.clw
?????文件???????2077??2008-11-14?13:52??showgif\showgif.cpp
?????文件???????4239??2008-11-14?14:06??showgif\showgif.dsp
?????文件????????522??2008-11-14?13:52??showgif\showgif.dsw
?????文件???????1335??2008-11-14?13:52??showgif\showgif.h
?????文件??????58368??2008-11-14?20:58??showgif\showgif.ncb
?????文件????????248??2008-11-14?20:25??showgif\showgif.plg
?????文件???????5357??2008-11-14?13:54??showgif\showgif.rc
?????文件???????7849??2008-11-14?14:02??showgif\showgifDlg.cpp
?????文件???????1649??2008-11-14?14:06??showgif\showgifDlg.h
?????文件????????209??2008-11-14?13:52??showgif\StdAfx.cpp
?????文件???????1054??2008-11-14?13:52??showgif\StdAfx.h
?????文件??????48640??2008-11-14?20:58??showgif\showgif.opt
?????目錄??????????0??2008-11-14?13:54??showgif\res
?????目錄??????????0??2008-11-14?14:08??showgif
-----------?---------??----------?-----??----
???????????????450734????????????????????21
評論
共有 條評論