• 大小: 168KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-08
  • 语言: C/C++
  • 标签: C++  VS2010  围棋  游戏  

资源简介

尚未完善的围棋游戏。使用vs2010开发。具有围棋棋盘,棋子界面,已经完成了提子算法。有兴趣的朋友可以与我一起来研究。欢迎大家前来交流

资源截图

代码片段和文件信息

// AssiDlg.cpp : 实现文件
//

#include “stdafx.h“
#include “MyFirstMFC.h“
#include “AssiDlg.h“
#include “afxdialogex.h“


// CAssiDlg 对话框

IMPLEMENT_DYNAMIC(CAssiDlg CDialogEx)

CAssiDlg::CAssiDlg(CWnd* pParent /*=NULL*/)
: CDialogEx(CAssiDlg::IDD pParent)
{

}

CAssiDlg::~CAssiDlg()
{
}

void CAssiDlg::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CAssiDlg CDialogEx)
ON_WM_HSCROLL()
END_MESSAGE_MAP()



void CAssiDlg::InitDlg(int Rint Gint Bint ScaleCWnd * pParent)
{
this->R=R;
this->G=G;
this->B=B;
this->Scale=Scale;
this->pParent=pParent;
}



void CAssiDlg::OnHScroll(UINT nSBCode UINT nPos CScrollBar* pScrollBar)
{
// TODO: 在此添加消息处理程序代码和/或调用默认值
CSliderCtrl *pSlidScale=(CSliderCtrl*)GetDlgItem(IDC_SSCALE);
CSliderCtrl *pSlid_R=(CSliderCtrl*)GetDlgItem(IDC_R);
CSliderCtrl *pSlid_G=(CSliderCtrl*)GetDlgItem(IDC_G);
CSliderCtrl *pSlid_B=(CSliderCtrl*)GetDlgItem(IDC_B);

    Scale=1+pSlidScale->GetPos()*0.1;
R=pSlid_R->GetPos()*2.55;
G=pSlid_G->GetPos()*2.55;
B=pSlid_B->GetPos()*2.55;

TCHAR Red[4];
TCHAR Blue[4];
TCHAR Green[4];
_itow(RRed10);
_itow(BBlue10);
_itow(GGreen10);

GetDlgItem(IDC_ST_R)->SetWindowTextW(Red);
GetDlgItem(IDC_ST_G)->SetWindowTextW(Green);
GetDlgItem(IDC_ST_B)->SetWindowTextW(Blue);
 
this->pParent->Invalidate(FALSE);   //在不擦除的情况下重绘

CDialogEx::OnHScroll(nSBCode nPos pScrollBar);
}

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

     文件       1522  2012-06-14 13:26  MyFirstMFC\MyFirstMFC\AssiDlg.cpp

     文件        591  2012-06-14 13:25  MyFirstMFC\MyFirstMFC\AssiDlg.h

     文件       1490  2012-03-10 21:51  MyFirstMFC\MyFirstMFC\BlackPiece.bmp

     文件       1654  2012-06-14 22:15  MyFirstMFC\MyFirstMFC\CCoordinateListView.h

     文件       4167  2012-06-14 21:43  MyFirstMFC\MyFirstMFC\CCoordinateView.cpp

     文件       6020  2012-06-04 22:40  MyFirstMFC\MyFirstMFC\CGO.cpp

     文件        638  2012-06-04 22:20  MyFirstMFC\MyFirstMFC\CGo.h

     文件       5724  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\MainFrm.cpp

     文件        996  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\MainFrm.h

     文件     129996  2012-06-04 23:10  MyFirstMFC\MyFirstMFC\MyFirstMFC.aps

     文件       5173  2012-03-18 21:55  MyFirstMFC\MyFirstMFC\MyFirstMFC.cpp

     文件        658  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\MyFirstMFC.h

     文件      28132  2012-06-04 23:10  MyFirstMFC\MyFirstMFC\MyFirstMFC.rc

     文件       6662  2012-06-04 23:35  MyFirstMFC\MyFirstMFC\MyFirstMFC.vcxproj

     文件       3563  2012-06-04 23:35  MyFirstMFC\MyFirstMFC\MyFirstMFC.vcxproj.filters

     文件        143  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\MyFirstMFC.vcxproj.user

     文件       2596  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\MyFirstMFCDoc.cpp

     文件        873  2012-06-05 10:22  MyFirstMFC\MyFirstMFC\MyFirstMFCDoc.h

     文件       5341  2012-06-14 21:39  MyFirstMFC\MyFirstMFC\MyFirstMFCView.cpp

     文件       1602  2012-06-14 21:41  MyFirstMFC\MyFirstMFC\MyFirstMFCView.h

     文件       3554  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\ReadMe.txt

     文件      67777  2009-08-31 02:31  MyFirstMFC\MyFirstMFC\res\MyFirstMFC.ico

     文件        676  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\res\MyFirstMFC.rc2

     文件       4710  2009-08-31 02:31  MyFirstMFC\MyFirstMFC\res\MyFirstMFCDoc.ico

     文件       1078  2009-08-31 02:31  MyFirstMFC\MyFirstMFC\res\Toolbar.bmp

     文件       5816  2009-08-31 03:59  MyFirstMFC\MyFirstMFC\res\Toolbar256.bmp

     文件       3526  2012-06-04 23:10  MyFirstMFC\MyFirstMFC\resource.h

     文件        143  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\stdafx.cpp

     文件       1784  2012-06-02 22:31  MyFirstMFC\MyFirstMFC\stdafx.h

     文件        234  2012-03-04 14:17  MyFirstMFC\MyFirstMFC\targetver.h

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

评论

共有 条评论