資源簡介
用MFC制作的打地鼠小游戲,主要訓練了定時器的使用。

代碼片段和文件信息
//?BeatMouse.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BeatMouse.h“
#include?“BeatMouseDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBeatMouseApp
BEGIN_MESSAGE_MAP(CBeatMouseApp?CWinApp)
//{{AFX_MSG_MAP(CBeatMouseApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CBeatMouseApp?construction
CBeatMouseApp::CBeatMouseApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBeatMouseApp?object
CBeatMouseApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBeatMouseApp?initialization
BOOL?CBeatMouseApp::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
CBeatMouseDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????117268??2012-10-25?18:09??BeatMouse\BeatMouse.aps
?????文件???????2105??2012-10-23?18:43??BeatMouse\BeatMouse.cpp
?????文件???????5040??2012-10-25?16:53??BeatMouse\BeatMouse.dsp
?????文件???????5172??2012-10-25?09:39??BeatMouse\BeatMouse.dsp.bak
?????文件????????526??2012-10-23?18:43??BeatMouse\BeatMouse.dsw
?????文件???????1357??2012-10-23?18:43??BeatMouse\BeatMouse.h
?????文件?????107520??2012-10-25?18:54??BeatMouse\BeatMouse.ncb
?????文件??????56832??2012-10-25?18:54??BeatMouse\BeatMouse.opt
?????文件???????1182??2012-10-25?18:53??BeatMouse\BeatMouse.plg
?????文件???????8635??2012-10-25?18:09??BeatMouse\BeatMouse.rc
?????文件??????13056??2012-10-25?18:53??BeatMouse\BeatMouseDlg.cpp
?????文件???????2265??2012-10-25?18:43??BeatMouse\BeatMouseDlg.h
?????文件?????221251??2012-10-25?18:53??BeatMouse\Debug\BeatMouse.exe
?????文件?????270956??2012-10-25?18:53??BeatMouse\Debug\BeatMouse.ilk
?????文件??????28942??2012-10-25?10:23??BeatMouse\Debug\BeatMouse.obj
?????文件????5501100??2012-10-25?10:23??BeatMouse\Debug\BeatMouse.pch
?????文件?????427008??2012-10-25?18:53??BeatMouse\Debug\BeatMouse.pdb
?????文件??????81236??2012-10-25?18:09??BeatMouse\Debug\BeatMouse.res
?????文件??????81460??2012-10-25?18:53??BeatMouse\Debug\BeatMouseDlg.obj
?????文件??????14077??2012-10-25?10:23??BeatMouse\Debug\GetName.obj
?????文件??????12723??2012-10-25?17:04??BeatMouse\Debug\Hero.obj
?????文件??????????6??2012-10-25?18:50??BeatMouse\Debug\Hero.txt
?????文件????1921908??2012-10-25?18:34??BeatMouse\Debug\Mario.wav
?????文件???????3960??2012-10-25?10:23??BeatMouse\Debug\Mouse.obj
?????文件???????6352??2012-10-25?10:23??BeatMouse\Debug\MouseQueue.obj
?????文件??????11405??2012-10-25?10:23??BeatMouse\Debug\Setting.obj
?????文件?????105617??2012-10-25?10:23??BeatMouse\Debug\StdAfx.obj
?????文件?????287744??2012-10-25?18:53??BeatMouse\Debug\vc60.idb
?????文件?????438272??2012-10-25?18:53??BeatMouse\Debug\vc60.pdb
?????文件???????1144??2012-10-24?21:13??BeatMouse\GetName.cpp
............此處省略48個文件信息
評論
共有 條評論