資源簡介
編寫一個程序使得其可以畫出中國地圖,并且能夠實現放大縮小,移動等功能,點擊你所在省份跳出省份簡介。在MFC中添加音樂,對話框中添加背景圖片等

代碼片段和文件信息
//?1.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“1.h“
#include?“MainFrm.h“
#include?“1Doc.h“
#include?“1View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy1App
BEGIN_MESSAGE_MAP(CMy1App?CWinApp)
//{{AFX_MSG_MAP(CMy1App)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMy1App?construction
CMy1App::CMy1App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy1App?object
CMy1App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy1App?initialization
BOOL?CMy1App::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
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CMy1Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy1View));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????842656??2010-06-02?13:23??21508105_地圖\21508105宋涵_地圖\1.aps
?????文件???????3219??2010-06-02?13:25??21508105_地圖\21508105宋涵_地圖\1.clw
?????文件???????4147??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\1.cpp
?????文件???????4656??2010-06-01?19:11??21508105_地圖\21508105宋涵_地圖\1.dsp
?????文件????????508??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\1.dsw
?????文件???????1311??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\1.h
?????文件?????238592??2010-06-02?13:25??21508105_地圖\21508105宋涵_地圖\1.ncb
?????文件?????104208??2010-06-02?13:23??21508105_地圖\21508105宋涵_地圖\1.plg
?????文件??????17282??2010-06-01?20:46??21508105_地圖\21508105宋涵_地圖\1.rc
?????文件????3555976??2010-06-01?20:40??21508105_地圖\21508105宋涵_地圖\1.wav
?????文件???????1676??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\1Doc.cpp
?????文件???????1434??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\1Doc.h
?????文件??????40904??2010-06-02?13:22??21508105_地圖\21508105宋涵_地圖\1View.cpp
?????文件???????2591??2010-05-31?22:10??21508105_地圖\21508105宋涵_地圖\1View.h
?????文件???????2631??2010-06-01?20:41??21508105_地圖\21508105宋涵_地圖\JiangSu.cpp
?????文件???????1364??2010-06-01?19:05??21508105_地圖\21508105宋涵_地圖\JiangSu.h
?????文件???????2745??2010-05-31?19:56??21508105_地圖\21508105宋涵_地圖\MainFrm.cpp
?????文件???????1466??2010-05-30?20:41??21508105_地圖\21508105宋涵_地圖\MainFrm.h
?????文件???????4205??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\ReadMe.txt
?????文件???????1191??2010-06-01?19:06??21508105_地圖\21508105宋涵_地圖\resource.h
?????文件???????1192??2004-08-17?20:00??21508105_地圖\21508105宋涵_地圖\start.wav
?????文件????????203??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\StdAfx.cpp
?????文件???????1054??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\StdAfx.h
?????文件???????1078??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\res\1.ico
?????文件????????393??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\res\1.rc2
?????文件???????1078??2010-04-21?21:04??21508105_地圖\21508105宋涵_地圖\res\1Doc.ico
?????文件?????810056??2010-06-01?19:06??21508105_地圖\21508105宋涵_地圖\res\large_g3hK_3436e132095.bmp
?????文件???????1678??2010-06-01?20:45??21508105_地圖\21508105宋涵_地圖\res\Toolbar.bmp
?????文件????1151043??2010-06-02?13:23??21508105_地圖\21508105宋涵_地圖\Debug\1.exe
?????文件?????396296??2010-06-02?13:23??21508105_地圖\21508105宋涵_地圖\Debug\1.ilk
............此處省略21個文件信息
- 上一篇:西工大C語言實驗及考研復試機試
- 下一篇:C++讀取DXF
評論
共有 條評論