資源簡介
MFC編寫的俄羅斯方塊,包括界面編寫。

代碼片段和文件信息
//?BarDemo.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“BarDemo.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp
BEGIN_MESSAGE_MAP(CBarDemoApp?CWinApp)
//{{AFX_MSG_MAP(CBarDemoApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp?construction
CBarDemoApp::CBarDemoApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CBarDemoApp?object
CBarDemoApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp?initialization
BOOL?CBarDemoApp::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
//?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“));
//?To?create?the?main?window?this?code?creates?a?new?frame?window
//?object?and?then?sets?it?as?the?application‘s?main?window?object.
CMainframe*?pframe?=?new?CMainframe;
m_pMainWnd?=?pframe;
//?create?and?load?the?frame?with?its?resources
pframe->Loadframe(IDR_MAINframe);
pframe->SetIcon(LoadIcon(IDR_MAINframe)FALSE);
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
pframe->ShowWindow(SW_SHOW);
pframe->UpdateWindow();
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CBarDemoApp?message?handlers
/////////////////////////////////////////////////////////////////////////////
//?CAboutDlg?dialog?used?for?App?About
class?CAboutDlg?:?public?CDialog
{
public:
CAboutDlg();
//?Dialog?Data
//{{AFX_DATA(CAboutDlg)
enum?{?IDD?=?IDD_ABOUTBOX?};
//}}AFX_DATA
//?ClassWizard?generated?virtual?function?overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual?void?DoDataExchange(CDataExchange*?pDX);????//?DDX/DDV?support
//}}AFX_VIRTUAL
//?Implementation
protected:
//{{AFX_MSG(CAboutDlg)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-02-12?14:01??bardemo\
?????目錄???????????0??2013-08-08?14:31??bardemo\bardemo\
?????文件???????35528??2013-04-19?15:03??bardemo\bardemo\BarDemo.aps
?????文件????????2590??2013-08-08?14:31??bardemo\bardemo\BarDemo.clw
?????文件????????3684??2004-02-08?15:55??bardemo\bardemo\BarDemo.cpp
?????文件????????5478??2012-02-12?14:01??bardemo\bardemo\BarDemo.dsp
?????文件?????????539??2001-09-02?15:20??bardemo\bardemo\BarDemo.dsw
?????文件????????1378??2001-09-02?15:20??bardemo\bardemo\BarDemo.h
?????文件????????1078??2001-09-03?17:57??bardemo\bardemo\BarDemo.ico
?????文件??????123904??2013-08-08?14:31??bardemo\bardemo\BarDemo.ncb
?????文件???????55808??2013-08-08?14:31??bardemo\bardemo\BarDemo.opt
?????文件?????????248??2013-08-08?14:30??bardemo\bardemo\BarDemo.plg
?????文件???????10461??2004-02-08?16:26??bardemo\bardemo\BarDemo.rc
?????文件?????????399??2001-09-02?15:20??bardemo\bardemo\BarDemo.rc2
?????文件????????4310??2001-09-02?17:23??bardemo\bardemo\bug.bmp
?????文件????????1152??2004-02-08?15:59??bardemo\bardemo\ChildView.cpp
?????文件????????1267??2001-09-02?15:20??bardemo\bardemo\ChildView.h
?????文件???????13906??2005-02-02?22:49??bardemo\bardemo\CoolTabCtrl.cpp
?????文件????????3455??2005-02-02?22:46??bardemo\bardemo\CoolTabCtrl.h
?????文件?????????173??2012-01-21?19:37??bardemo\bardemo\copyright.bat
?????目錄???????????0??2013-03-13?18:01??bardemo\bardemo\Debug\
?????文件??????184393??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.exe
?????文件??????552752??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.ilk
?????文件???????21752??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.obj
?????文件?????6207036??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.pch
?????文件??????484352??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.pdb
?????文件???????13720??2013-03-13?18:01??bardemo\bardemo\Debug\BarDemo.res
?????文件???????12297??2013-03-13?18:01??bardemo\bardemo\Debug\ChildView.obj
?????文件???????63079??2013-03-13?18:01??bardemo\bardemo\Debug\CoolTabCtrl.obj
?????文件???????37769??2013-03-13?18:01??bardemo\bardemo\Debug\MainFrm.obj
?????文件???????13827??2013-03-13?18:01??bardemo\bardemo\Debug\MyDlg.obj
............此處省略29個文件信息
- 上一篇:單片機C51學習KEIL C的仿真
- 下一篇:用C++編寫的翻牌類游戲
評論
共有 條評論