-
大小: 22.29MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-06-19
- 語言: C/C++
- 標簽: MFC??ViscuallC++??源碼??
資源簡介
Visual C++程序設計與應用教程
代碼片段和文件信息
//?Li10_1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Li10_1.h“
#include?“Li10_1Dlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CLi10_1App
BEGIN_MESSAGE_MAP(CLi10_1App?CWinApp)
//{{AFX_MSG_MAP(CLi10_1App)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CLi10_1App?construction
CLi10_1App::CLi10_1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CLi10_1App?object
CLi10_1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CLi10_1App?initialization
BOOL?CLi10_1App::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
CLi10_1Dlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-11-21?10:49??馬石安著Visual?C++程序設計與應用教程(第二版)\
?????目錄???????????0??2016-11-21?10:48??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\
?????目錄???????????0??2016-11-21?10:48??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\
?????文件???????35556??2007-04-03?19:55??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.aps
?????文件????????1106??2007-04-03?20:05??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.clw
?????文件????????2063??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.cpp
?????文件????????4159??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.dsp
?????文件?????????537??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.dsw
?????文件????????1324??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.h
?????文件???????58368??2007-04-03?20:05??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.ncb
?????文件???????53760??2007-04-03?20:05??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.opt
?????文件?????????702??2007-04-03?19:55??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.plg
?????文件????????5236??2007-04-03?19:55??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1.rc
?????文件????????4337??2007-03-30?22:05??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1Dlg.cpp
?????文件????????1368??2007-03-30?21:54??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Li10_1Dlg.h
?????文件????????3579??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\ReadMe.txt
?????目錄???????????0??2016-11-21?10:48??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\res\
?????文件?????????684??2007-03-30?21:55??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\Resource.h
?????文件????????1078??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\res\Li10_1.ico
?????文件?????????398??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\res\Li10_1.rc2
?????文件?????????208??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\StdAfx.cpp
?????文件????????1054??2007-03-30?21:49??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_1\StdAfx.h
?????目錄???????????0??2016-11-21?10:48??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\
?????文件???????44112??2007-03-31?22:07??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.aps
?????文件????????2290??2007-04-05?11:15??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.clw
?????文件????????4209??2007-03-31?21:58??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.cpp
?????文件????????4555??2007-03-31?21:58??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.dsp
?????文件?????????537??2007-03-31?21:58??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.dsw
?????文件????????1356??2007-03-31?21:58??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.h
?????文件???????58368??2007-04-05?11:15??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.ncb
?????文件???????53760??2007-04-05?11:15??馬石安著Visual?C++程序設計與應用教程(第二版)\第10章實例\Li10_2\Li10_2.opt
............此處省略2542個文件信息
- 上一篇:C++程序設計實踐指導
- 下一篇:Effective C++
評論
共有 條評論