資源簡介
自己在游戲設計課上動手編的一個掃雷游戲,有音效,而且音效是仿照win7掃雷的,適合初學者學習參考。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“Mine.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
cs.style?=?WS_OVERLAPPED?|?WS_CAPTION?|?FWS_ADDTOtitle
|?WS_THICKframe?|?WS_SYSMENU?|?WS_MINIMIZEBOX;
cs.style&=~(WS_THICKframe);
cs.cx=292;
cs.cy=370;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????14339??2011-05-20?15:10??Mine\Debug\MainFrm.obj
?????文件??????????0??2011-05-20?15:10??Mine\Debug\MainFrm.sbr
?????文件????3826688??2011-05-20?23:41??Mine\Debug\Mine.bsc
?????文件????2166830??2011-05-20?23:41??Mine\Debug\Mine.exe
?????文件????2719120??2011-05-20?23:41??Mine\Debug\Mine.ilk
?????文件??????21755??2011-05-20?15:30??Mine\Debug\Mine.obj
?????文件????7421068??2011-05-20?15:10??Mine\Debug\Mine.pch
?????文件????4162560??2011-05-20?23:41??Mine\Debug\Mine.pdb
?????文件??????20424??2011-05-20?15:13??Mine\Debug\Mine.res
?????文件??????????0??2011-05-20?15:30??Mine\Debug\Mine.sbr
?????文件??????13610??2011-05-20?15:10??Mine\Debug\MineDoc.obj
?????文件??????????0??2011-05-20?15:10??Mine\Debug\MineDoc.sbr
?????文件??????66847??2011-05-20?23:41??Mine\Debug\MineView.obj
?????文件??????????0??2011-05-20?23:41??Mine\Debug\MineView.sbr
?????文件?????117861??2011-05-20?15:10??Mine\Debug\StdAfx.obj
?????文件????1418426??2011-05-20?15:10??Mine\Debug\StdAfx.sbr
?????文件?????369664??2011-05-20?23:54??Mine\Debug\vc60.idb
?????文件?????421888??2011-05-20?23:41??Mine\Debug\vc60.pdb
?????文件??????47086??2011-05-20?11:26??Mine\error.wav
?????文件??????65580??2011-05-10?15:59??Mine\extend.wav
?????文件?????341086??2011-05-20?11:28??Mine\lost.wav
?????文件???????1666??2011-04-28?12:58??Mine\MainFrm.cpp
?????文件???????1431??2011-04-25?17:04??Mine\MainFrm.h
?????文件??????50304??2011-05-20?15:13??Mine\Mine.aps
?????文件???????1421??2011-05-20?23:27??Mine\Mine.clw
?????文件???????4078??2011-04-25?16:33??Mine\Mine.cpp
?????文件???????4806??2011-05-20?15:43??Mine\Mine.dsp
?????文件????????516??2011-04-25?16:33??Mine\Mine.dsw
?????文件???????1334??2011-04-25?16:33??Mine\Mine.h
?????文件??????82944??2011-05-20?23:54??Mine\Mine.ncb
............此處省略28個文件信息
- 上一篇:C++語言繪制中國地圖
- 下一篇:c語言實現連連看程序
評論
共有 條評論