資源簡介
本程序用了簡單的MFC知識(shí),只是學(xué)習(xí)過程中的小小的練習(xí),有什么不足希望大家指出,先謝謝了。本程序是基于MFC的連連看小游戲。

代碼片段和文件信息
//?linkGame.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“l(fā)inkGame.h“
#include?“l(fā)inkGameDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?ClinkGameApp
BEGIN_MESSAGE_MAP(ClinkGameApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)
END_MESSAGE_MAP()
//?ClinkGameApp?construction
ClinkGameApp::ClinkGameApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?ClinkGameApp?object
ClinkGameApp?theApp;
//?ClinkGameApp?initialization
BOOL?ClinkGameApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::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
//?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“));
ClinkGameDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?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;
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????3482668??2010-04-27?18:00??li
?????文件???????2112??2010-04-12?15:44??li
?????文件????????519??2010-04-12?15:44??li
?????文件???????6826??2010-04-27?18:00??li
?????文件???????7275??2010-04-27?15:00??li
?????文件???????1413??2010-05-04?20:48??li
?????文件???????1407??2010-04-27?18:01??li
?????文件??????20624??2010-04-27?17:58??li
?????文件???????2782??2010-04-27?15:04??li
?????文件????????885??2010-04-27?13:02??li
?????文件????????217??2010-04-09?09:55??li
?????文件???????4260??2010-04-07?10:47??li
?????文件??????54934??2010-04-07?10:50??li
?????文件?????386622??2010-04-07?10:50??li
?????文件????1440054??2010-04-07?15:12??li
?????文件?????810054??2010-04-08?16:58??li
?????文件??????21630??2003-07-23?17:52??li
?????文件????????399??2010-04-07?10:47??li
?????文件?????360056??2010-04-27?14:06??li
?????文件???????9656??2010-04-14?13:11??li
?????文件????????238??2010-04-12?15:51??li
?????文件?????360056??2010-04-14?17:04??li
?????文件???????1689??2010-04-27?14:06??li
?????文件????????208??2010-04-07?10:47??li
?????文件???????1977??2010-04-07?11:37??li
?????文件???????1432??2010-04-07?10:47??li
?????文件????????890??2010-04-07?10:47??li
????..A..H.?????43008??2010-05-04?20:48??li
?????目錄??????????0??2010-05-04?20:45??li
?????目錄??????????0??2010-05-04?20:49??li
............此處省略4個(gè)文件信息
評(píng)論
共有 條評(píng)論