资源简介
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++编写的翻牌类游戏
相关资源
- 基于MFC的UDP通信实现
- 自定义消息
- 毕业设计-C++俄罗斯方块
- mfc 实现迷宫程序
- 记账本小程序
- vc++6.0 MFC 写的贪吃蛇工程源码
- MFC 绘图工具 绘制简单 图形文档和代
- MFC平台下的电子词典
- MFC 贪吃蛇
- MFC教师住房管理系统和矩阵运算以及
- 高斯投影坐标正反算MFC
- mfc实现的考试出题系统
- VC++之MFC类库中文手册含MFC控件使用手
- 利用MFC和OpenCV实现的图片浏览器,支
- MFC编写的贪吃蛇源码
- 火车订票系统MFC
- 基于VC++MFC程序设计简易画图板
- 用MFC做的模拟时钟指针,还有日历对
- VC基于对话框的MFC程序,实现字符统计
- 基于MFC对话框扫雷程序
- MFC各种重绘漂亮按钮
- 简易打字游戏程序 MFC
- MFC中利用CSocket实现UDP通信
- Ogre与MFC整合,不错的东西
- 局域网视屏监控模块vs2010可运行
- MFC 制作浏览器,基本功能全有,带收
- MFC简单指示灯的实现
- MFC多线程编程----多线程画线源码
- 工资管理系统MFC和数据库开发
- 基于MFC的CSocket类实现点对点通信
评论
共有 条评论