資源簡介
jpeg格式圖片的讀取和顯示的簡單易懂的小程序,對于那些初學者有很大的幫助

代碼片段和文件信息
//?ShowJPG.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“ShowJPG.h“
#include?“ShowJPGDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CShowJPGApp
BEGIN_MESSAGE_MAP(CShowJPGApp?CWinApp)
//{{AFX_MSG_MAP(CShowJPGApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CShowJPGApp?construction
CShowJPGApp::CShowJPGApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CShowJPGApp?object
CShowJPGApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CShowJPGApp?initialization
BOOL?CShowJPGApp::InitInstance()
{
CoInitialize(NULL);
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
CShowJPGDlg?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.
CoUninitialize();
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????694??2006-04-05?23:57??ShowJPG\ShowJPG.clw
?????文件???????3597??2006-04-05?15:36??ShowJPG\ReadMe.txt
?????文件???????1335??2006-04-05?15:36??ShowJPG\ShowJPG.h
?????文件???????1054??2006-04-05?15:36??ShowJPG\StdAfx.h
?????文件????????209??2006-04-05?15:36??ShowJPG\StdAfx.cpp
?????文件???????4177??2006-04-05?15:36??ShowJPG\ShowJPG.dsp
?????文件????????539??2006-04-05?15:36??ShowJPG\ShowJPG.dsw
?????文件??????58368??2006-04-05?23:57??ShowJPG\ShowJPG.ncb
?????文件????????547??2006-04-05?15:37??ShowJPG\Resource.h
?????文件???????2121??2006-04-05?15:52??ShowJPG\ShowJPG.cpp
?????文件???????1475??2006-04-05?16:25??ShowJPG\ShowJPGDlg.h
?????文件????????399??2006-04-05?15:36??ShowJPG\res\ShowJPG.rc2
?????文件???????1078??2006-04-05?15:36??ShowJPG\res\ShowJPG.ico
?????目錄??????????0??2006-04-05?21:32??ShowJPG\res
?????文件??????34632??2006-04-05?21:59??ShowJPG\ShowJPG.aps
?????文件???????4415??2006-04-05?21:59??ShowJPG\ShowJPG.rc
?????文件???????5397??2006-04-05?22:06??ShowJPG\ShowJPGDlg.cpp
?????文件??????53760??2006-04-05?23:57??ShowJPG\ShowJPG.opt
?????目錄??????????0??2006-04-05?21:32??ShowJPG
-----------?---------??----------?-----??----
???????????????174015????????????????????20
- 上一篇:Qt界面響應鍵盤事件
- 下一篇:最新版本linux libc庫實現源碼
評論
共有 條評論