-
大小: 1.99MB文件類型: .rar金幣: 2下載: 0 次發布日期: 2023-10-26
- 語言: C/C++
- 標簽:
資源簡介
以前發過同樣的一個版本
代碼基本相同,但以前的版本有些小bug
另外這個版本也加了使用方法,以防有的人不會用
希望大家用的愉快
如有不懂,可以相互交流。

代碼片段和文件信息
//?airport.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“airport.h“
#include?“airportDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAirportApp
BEGIN_MESSAGE_MAP(CAirportApp?CWinApp)
//{{AFX_MSG_MAP(CAirportApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CAirportApp?construction
CAirportApp::CAirportApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CAirportApp?object
CAirportApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CAirportApp?initialization
BOOL?CAirportApp::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
CAirportDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????24064??2009-09-10?15:49??airport\airport.aps
?????文件???????4047??2009-09-10?16:03??airport\airport.clw
?????文件???????2077??2009-09-04?16:36??airport\airport.cpp
?????文件???????4578??2009-09-09?13:10??airport\airport.dsp
?????文件????????522??2009-09-04?16:36??airport\airport.dsw
?????文件???????1333??2009-09-05?11:11??airport\airport.h
?????文件??????91136??2009-09-10?16:08??airport\airport.ncb
?????文件????????749??2009-09-10?16:04??airport\airport.plg
?????文件???????9142??2009-09-09?18:29??airport\airport.rc
?????文件?????????37??2009-09-10?15:50??airport\airport.txt
?????文件????????990??2009-09-05?10:41??airport\airport1.cpp
?????文件???????1234??2009-09-05?10:41??airport\airport1.h
?????文件???????5419??2009-09-09?12:54??airport\airportDlg.cpp
?????文件???????1666??2009-09-09?12:54??airport\airportDlg.h
?????文件???????7280??2009-09-09?18:43??airport\AirportIMG.cpp
?????文件???????1624??2009-09-09?10:33??airport\AirportIMG.h
?????文件???????3597??2009-09-04?16:36??airport\ReadMe.txt
?????文件???????1789??2009-09-09?13:01??airport\resource.h
?????文件????????209??2009-09-04?16:36??airport\StdAfx.cpp
?????文件???????1054??2009-09-04?16:36??airport\StdAfx.h
?????文件???????1078??2009-09-04?16:36??airport\res\airport.ico
?????文件????????399??2009-09-04?16:36??airport\res\airport.rc2
?????文件?????139309??2009-09-10?16:04??airport\Debug\airport.exe
?????文件??????13444??2009-09-09?18:56??airport\Debug\airport.obj
?????文件????5490224??2009-09-04?16:51??airport\Debug\airport.pch
?????文件?????451584??2009-09-10?16:04??airport\Debug\airport.pdb
?????文件???????4292??2009-09-09?18:29??airport\Debug\airport.res
?????文件??????10398??2009-09-05?10:48??airport\Debug\airport1.obj
?????文件??????31746??2009-09-09?18:56??airport\Debug\airportDlg.obj
?????文件??????50358??2009-09-09?18:43??airport\Debug\AirportIMG.obj
............此處省略19個文件信息
評論
共有 條評論