资源简介
VC++编写的黑白棋,可实现人人对决,人机对决,自动走棋

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “MyApple.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 !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return 0;
}
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.lpszName=“ -迷宫求解- “;
CRect rect(00600520);
::AdjustWindowRectEx(&rectcs.styleTRUEcs.dwExstyle);
cs.cx=rect.Width();
cs.cy=rect.Height();
cs.style=WS_OVERLAPPED|WS_CAPTION|WS_SYSMENU|WS_MINIMIZEBOX;
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8862 2009-03-06 22:09 黑白棋\Board.h
文件 1519 2009-03-06 17:49 黑白棋\Cube.h
文件 19889 2010-08-29 01:01 黑白棋\Debug\MainFrm.obj
文件 3673 2010-08-29 01:01 黑白棋\Debug\MainFrm.sbr
文件 12110 2010-08-29 01:01 黑白棋\Debug\MessageDlg.obj
文件 2218 2010-08-29 01:01 黑白棋\Debug\MessageDlg.sbr
文件 200749 2010-09-21 10:48 黑白棋\Debug\MyApple.exe
文件 370704 2010-09-21 10:48 黑白棋\Debug\MyApple.ilk
文件 23370 2010-08-29 10:58 黑白棋\Debug\MyApple.obj
文件 6867444 2010-08-29 01:01 黑白棋\Debug\MyApple.pch
文件 476160 2010-09-21 10:48 黑白棋\Debug\MyApple.pdb
文件 55732 2010-09-21 10:48 黑白棋\Debug\MyApple.res
文件 22067 2010-08-29 10:58 黑白棋\Debug\MyApple.sbr
文件 14422 2010-08-29 01:01 黑白棋\Debug\MyAppleDoc.obj
文件 3058 2010-08-29 01:01 黑白棋\Debug\MyAppleDoc.sbr
文件 102028 2010-08-29 01:01 黑白棋\Debug\MyAppleView.obj
文件 79063 2010-08-29 01:01 黑白棋\Debug\MyAppleView.sbr
文件 105310 2010-08-29 01:01 黑白棋\Debug\StdAfx.obj
文件 1369617 2010-08-29 01:01 黑白棋\Debug\StdAfx.sbr
文件 222208 2010-09-21 10:48 黑白棋\Debug\vc60.idb
文件 380928 2010-08-29 01:01 黑白棋\Debug\vc60.pdb
文件 2735 2009-03-06 22:05 黑白棋\MainFrm.cpp
文件 1581 2009-02-26 19:47 黑白棋\MainFrm.h
文件 988 2009-03-04 16:46 黑白棋\MessageDlg.cpp
文件 1227 2009-03-04 16:42 黑白棋\MessageDlg.h
文件 94796 2010-09-21 10:48 黑白棋\MyApple.aps
文件 2472 2010-09-21 10:48 黑白棋\MyApple.clw
文件 4227 2009-02-26 19:47 黑白棋\MyApple.cpp
文件 5777 2009-03-11 09:02 黑白棋\MyApple.dsp
文件 522 2009-02-26 19:56 黑白棋\MyApple.dsw
............此处省略40个文件信息
- 上一篇:C++五子棋,实现人机对战、人人对战
- 下一篇:语法分析c语言实现含报告
相关资源
- VC++ 多线程文件读写操作
- 移木块游戏,可以自编自玩,vc6.0编写
- VC++MFC小游戏实例教程(实例)+MFC类库
- VC++实现CMD命令执行与获得返回信息
- VC++基于OpenGL模拟的一个3维空间模型
- 基于VC++的SolidWorks二次开发SolidWorks
- 派克变换VC++源码(附文档)
- VC++ 串口
- VC++ 大富翁4_大富翁游戏源码
- VC++ 摄像头视频采集与回放源程序
- 转 VC++ 实现电子邮件(Email)发送
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- VC++ 服务程序编写及安装与卸载
- VC++6.0番茄西红柿VAXvirsual assist X完美破
- 基于改进的fcm算法的图像分割vc++
- VC++6.0 绿色版,免安装,非常好用。
- Microsoft Visual C++ 2005 Redistributable Pack
- VC++MFC课程设计的学生成绩管理系统
- 大智慧365DLL插件设计
- VC++6.0汉化包
- VC++完整商业界面源码(再上传)
- VC++编程技术600个大型项目源码.rar
- VC++实现RSA加密算法
- VC++ 中国象棋经典游戏源代码
- 郁金香VC++游戏辅助视频教程
- C语言进阶源码---基于graphics实现图书
- 摄影测量相对定向VC++程序
- VC++数字图像处理典型算法及实现
- VC++酒店客房管理系统 MFC
- 车站计算机联锁vc++6.0程序代码
评论
共有 条评论