⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chessdlg.h

📁 EVC开发的WinCE操作系统下的五子棋源码
💻 H
字号:
// ChessDlg.h : header file
//

#if !defined(AFX_CHESSDLG_H__6D3F2923_BDBC_4E94_B566_4096824F2DB0__INCLUDED_)
#define AFX_CHESSDLG_H__6D3F2923_BDBC_4E94_B566_4096824F2DB0__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#define ROW 10
#define COL 10

/////////////////////////////////////////////////////////////////////////////
// CChessDlg dialog

class CChessDlg : public CDialog
{
// Construction
public:
	void DrawnChess();
	void DrawBlackWin();
	void DrawWhiteWin();
	BOOL ClickExitButton(CPoint point);
	BOOL ClickNewButton(CPoint point);
	void DrawExitButton();
	void DrawNewButton();
	int Offset;
	int nHeight;
	void DrawBackground();
	int Count;
	int bd(int i, int j, int *maxnum);
	BOOL gameover;
	int rgzl5(int *tempi,int *tempj);
	int rgzl4(int *tempi,int *tempj);
	int rgzl3(int *tempi,int *tempj);
	int rgzl2(int *tempi,int *tempj);
	int rgzl1(int *tempi,int *tempj);
	int ComputerAI();
	void StartGame();
	int player;
	double proportion;
	int starty;
	int startx;
	int cy;
	int cx;
	int nodes[ROW+1][COL+1];
	void DrawQizi();
	void DrawGrid();
	int nWidth;
	void DrawQiban();
	CChessDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CChessDlg)
	enum { IDD = IDD_CHESS_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChessDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CChessDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHESSDLG_H__6D3F2923_BDBC_4E94_B566_4096824F2DB0__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -