資源簡(jiǎn)介
51CTO.com 官方C/C++開(kāi)發(fā)工程師 ,驗(yàn)證請(qǐng)輸入您的ID。其中包括6個(gè)小游戲,分別是掃雷、俄羅斯方塊、拼圖、貪食蛇、推箱子和連連看。希望大家喜歡并能用得上哦~不足之處,多多包含。
本資料共包含以下附件:

代碼片段和文件信息
/*++
Copyright?(c)?2004-2005??Micro-soft
Module?Name:
????DlgCustom.cpp
Abstract:
???????the?class?of?Dialog?for?setting?user‘s?favor-config
Author:
Microsoft‘s?Engineer?-?Unknown?Name
????improved?by?Weijian?Luo?(Arthur?Luo)???15-Jun-2005
E-mail:?skybluehacker@yahoo.com.cn
Revision?History:??????1.0
--*/
#include?“stdafx.h“
#include?“mine.h“
#include?“DlgCustom.h“
#include?“MineWnd.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDlgCustom?dialog
CDlgCustom::CDlgCustom(CWnd*?pParent?/*=NULL*/)
:?CDialog(CDlgCustom::IDD?pParent)
{
//{{AFX_DATA_INIT(CDlgCustom)
m_uHeight?=?0;
m_uNumber?=?0;
m_uWidth?=?0;
//}}AFX_DATA_INIT
}
void?CDlgCustom::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgCustom)
DDX_Text(pDX?IDC_HEIGHT?m_uHeight);
DDX_Text(pDX?IDC_NUMBER?m_uNumber);
DDX_Text(pDX?IDC_WIDTH?m_uWidth);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgCustom?CDialog)
//{{AFX_MSG_MAP(CDlgCustom)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
void?CDlgCustom::OnOK()?
{
UpdateData();
if?(m_uWidth?9)?m_uWidth?=?9;
if?(m_uWidth?>?30)?m_uWidth?=?30;
if?(m_uHeight?9)?m_uHeight?=?9;
if?(m_uHeight?>?24)?m_uHeight?=?24;
if?(m_uNumber?10)?m_uNumber?=?10;
if?(m_uNumber?>?m_uWidth?*?m_uHeight)?m_uNumber?=?m_uWidth?*?m_uHeight?-?1;
CMineWnd?*pMine?=?(CMineWnd*)AfxGetMainWnd();
pMine->SetCustom(m_uWidth?m_uHeight?m_uNumber);
CDialog::OnOK();
}
void?CDlgCustom::InitData(UINT?xNum?UINT?yNum?UINT?mNum)
{
m_uWidth?=?xNum;
m_uHeight?=?yNum;
m_uNumber?=?mNum;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????216??2009-05-18?22:28??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\config.ini
?????文件??????12083??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgCustom.obj
?????文件???????7471??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgCustom.sbr
?????文件??????22565??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgHero.obj
?????文件??????10440??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgHero.sbr
?????文件??????16288??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgNewRecord.obj
?????文件???????9497??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\DlgNewRecord.sbr
?????文件?????258127??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.exe
?????文件?????318336??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.ilk
?????文件??????17963??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.obj
?????文件????6888480??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.pch
?????文件?????459776??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.pdb
?????文件?????100092??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.res
?????文件???????8934??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\Mine.sbr
?????文件?????106704??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\MineWnd.obj
?????文件??????85715??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\MineWnd.sbr
?????文件?????105686??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\StdAfx.obj
?????文件????1369685??2009-05-17?21:58??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\StdAfx.sbr
?????文件?????214016??2009-05-18?22:20??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\vc60.idb
?????文件?????380928??2009-05-18?15:15??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Debug\vc60.pdb
?????文件???????1842??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgCustom.cpp
?????文件???????1275??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgCustom.h
?????文件???????2362??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgHero.cpp
?????文件???????1455??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgHero.h
?????文件???????1623??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgNewRecord.cpp
?????文件???????1302??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\DlgNewRecord.h
?????文件?????121108??2009-05-17?21:57??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Mine.aps
?????文件???????2396??2009-05-18?22:29??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Mine.clw
?????文件???????2263??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Mine.cpp
?????文件???????5268??2006-01-05?14:54??經(jīng)典游戲程序設(shè)計(jì)\第2章?掃雷\Skyblue_Mine\Mine.dsp
............此處省略289個(gè)文件信息
評(píng)論
共有 條評(píng)論