資源簡介
MFC拼圖游戲 用MFC寫的 很簡單 想寫做游戲的同學可以研究下

代碼片段和文件信息
//?pingtu.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“pingtu.h“
#include?“pingtuDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CPingtuApp
BEGIN_MESSAGE_MAP(CPingtuApp?CWinApp)
//{{AFX_MSG_MAP(CPingtuApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CPingtuApp?construction
CPingtuApp::CPingtuApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CPingtuApp?object
CPingtuApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CPingtuApp?initialization
BOOL?CPingtuApp::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
CPingtuDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????545334??2012-05-31?22:07??拼圖游戲\1.bmp
?????文件????5423108??2010-01-21?01:40??拼圖游戲\1.wav
?????文件?????761919??2012-05-31?22:27??拼圖游戲\Debug\pingtu.exe
?????文件?????266256??2012-05-31?22:27??拼圖游戲\Debug\pingtu.ilk
?????文件??????12860??2012-05-31?22:22??拼圖游戲\Debug\pingtu.obj
?????文件????5638492??2012-05-31?22:08??拼圖游戲\Debug\pingtu.pch
?????文件?????361472??2012-05-31?22:27??拼圖游戲\Debug\pingtu.pdb
?????文件?????547868??2012-05-31?22:27??拼圖游戲\Debug\pingtu.res
?????文件??????37466??2012-05-31?22:24??拼圖游戲\Debug\pingtuDlg.obj
?????文件?????105841??2012-05-31?22:08??拼圖游戲\Debug\StdAfx.obj
?????文件?????214016??2012-05-31?22:27??拼圖游戲\Debug\vc60.idb
?????文件?????380928??2012-05-31?22:24??拼圖游戲\Debug\vc60.pdb
?????文件?????962612??2004-02-27?00:00??拼圖游戲\MFC42D.DLL
?????文件?????303157??2004-02-27?00:00??拼圖游戲\MFCD42D.DLL
?????文件?????827445??2004-02-27?00:00??拼圖游戲\MFCO42D.DLL
?????文件?????434252??2004-02-17?00:00??拼圖游戲\MSVCRTD.DLL
?????文件?????580908??2012-05-31?22:28??拼圖游戲\pingtu.aps
?????文件???????1074??2012-05-31?22:27??拼圖游戲\pingtu.clw
?????文件???????2063??2012-04-11?08:16??拼圖游戲\pingtu.cpp
?????文件???????4252??2012-04-15?15:51??拼圖游戲\pingtu.dsp
?????文件????????520??2012-04-11?08:16??拼圖游戲\pingtu.dsw
?????文件?????761906??2012-04-13?14:07??拼圖游戲\pingtu.exe
?????文件???????1324??2012-04-11?08:16??拼圖游戲\pingtu.h
?????文件??????66560??2012-05-31?22:28??拼圖游戲\pingtu.ncb
?????文件??????48640??2012-05-31?22:28??拼圖游戲\pingtu.opt
?????文件????????697??2012-05-31?22:27??拼圖游戲\pingtu.plg
?????文件???????5345??2012-05-31?22:28??拼圖游戲\pingtu.rc
?????文件???????6919??2012-05-31?22:24??拼圖游戲\pingtuDlg.cpp
?????文件???????1601??2012-05-31?22:21??拼圖游戲\pingtuDlg.h
?????文件???????3579??2012-04-11?08:16??拼圖游戲\ReadMe.txt
............此處省略11個文件信息
評論
共有 條評論