資源簡介
簡單實用!

代碼片段和文件信息
//?123.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“123.h“
#include?“123Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy123App
BEGIN_MESSAGE_MAP(CMy123App?CWinApp)
//{{AFX_MSG_MAP(CMy123App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CMy123App?construction
CMy123App::CMy123App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy123App?object
CMy123App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy123App?initialization
BOOL?CMy123App::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
CMy123Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????35412??2011-12-26?04:06??123\123.aps
?????文件???????1045??2011-12-26?06:32??123\123.clw
?????文件???????2043??2011-12-26?04:05??123\123.cpp
?????文件???????4001??2011-12-26?04:05??123\123.dsp
?????文件????????514??2011-12-26?04:05??123\123.dsw
?????文件???????1301??2011-12-26?04:05??123\123.h
?????文件??????50176??2011-12-26?06:39??123\123.ncb
?????文件??????48640??2011-12-26?06:39??123\123.opt
?????文件????????240??2011-12-26?06:37??123\123.plg
?????文件???????5167??2011-12-26?04:06??123\123.rc
?????文件???????4333??2011-12-26?06:33??123\123Dlg.cpp
?????文件???????1352??2011-12-26?06:32??123\123Dlg.h
?????文件????2117702??2011-12-26?06:33??123\Debug\123.exe
?????文件????2509236??2011-12-26?06:33??123\Debug\123.ilk
?????文件??????13046??2011-12-26?06:32??123\Debug\123.obj
?????文件????5599532??2011-12-26?04:06??123\Debug\123.pch
?????文件????4064256??2011-12-26?06:33??123\Debug\123.pdb
?????文件???????8440??2011-12-26?04:06??123\Debug\123.res
?????文件??????25411??2011-12-26?06:33??123\Debug\123Dlg.obj
?????文件?????105839??2011-12-26?04:06??123\Debug\StdAfx.obj
?????文件?????197632??2011-12-26?06:37??123\Debug\vc60.idb
?????文件?????364544??2011-12-26?06:33??123\Debug\vc60.pdb
?????文件???????3531??2011-12-26?04:05??123\ReadMe.txt
?????文件???????1078??2011-12-26?04:05??123\res\123.ico
?????文件????????395??2011-12-26?04:05??123\res\123.rc2
?????文件????????727??2011-12-26?04:06??123\resource.h
?????文件????????205??2011-12-26?04:05??123\StdAfx.cpp
?????文件???????1054??2011-12-26?04:05??123\StdAfx.h
?????目錄??????????0??2011-12-26?06:33??123\Debug
?????目錄??????????0??2011-12-26?04:05??123\res
............此處省略4個文件信息
- 上一篇:MFC繪圖直線、橢圓、矩形、網格
- 下一篇:MFC界面美化
評論
共有 條評論