• 大小: 1.88MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-04
  • 语言: C/C++
  • 标签: VC  五子棋  

资源简介

可用于双人对战 基于VC平台的五子棋游戏

资源截图

代码片段和文件信息

// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “TEMMMwzqi.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

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


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        158  2008-08-31 21:10  实验四.五子棋游戏\关于中级的思路.txt

     文件         28  2008-08-31 21:11  实验四.五子棋游戏\关于初级的思路.txt

     文件       2510  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\MainFrm.cpp

     文件       1581  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\MainFrm.h

     文件       4383  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\ReadMe.txt

     文件        968  2008-09-08 17:19  实验四.五子棋游戏\TEMMMwzqi\resource.h

     文件        211  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\StdAfx.cpp

     文件       1054  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\StdAfx.h

     文件      45028  2008-09-08 17:22  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.aps

     文件       2903  2008-09-08 17:34  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.clw

     文件       4321  2008-09-08 17:07  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.cpp

     文件       4865  2008-09-08 17:27  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.dsp

     文件        524  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.dsw

     文件       1389  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.h

     文件     107520  2008-09-08 17:34  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.ncb

     文件      50688  2008-09-08 17:34  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.opt

     文件       2552  2008-09-08 17:27  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.plg

     文件      12629  2008-09-08 17:22  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqi.rc

     文件       1802  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqiDoc.cpp

     文件       1508  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqiDoc.h

     文件      11370  2008-09-08 17:34  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqiView.cpp

     文件       2333  2008-09-08 17:23  实验四.五子棋游戏\TEMMMwzqi\TEMMMwzqiView.h

     文件        978  2008-09-08 17:25  实验四.五子棋游戏\TEMMMwzqi\WzqDlg.cpp

     文件       1223  2008-09-08 17:25  实验四.五子棋游戏\TEMMMwzqi\WzqDlg.h

     文件        990  2008-09-08 17:25  实验四.五子棋游戏\TEMMMwzqi\WzqDlg1.cpp

     文件       1233  2008-09-08 17:25  实验四.五子棋游戏\TEMMMwzqi\WzqDlg1.h

     文件       1078  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\res\TEMMMwzqi.ico

     文件        401  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\res\TEMMMwzqi.rc2

     文件       1078  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\res\TEMMMwzqiDoc.ico

     文件       1078  2008-09-07 17:57  实验四.五子棋游戏\TEMMMwzqi\res\Toolbar.bmp

............此处省略19个文件信息

评论

共有 条评论