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

📄 fivechessserverdlg.h

📁 本程序作为五子棋对局程序的裁判程序
💻 H
字号:
// FiveChessServerDlg.h : header file
//

#if !defined(AFX_FIVECHESSSERVERDLG_H__D7C498FB_6EDA_4E96_945F_769F84E37EEA__INCLUDED_)
#define AFX_FIVECHESSSERVERDLG_H__D7C498FB_6EDA_4E96_945F_769F84E37EEA__INCLUDED_

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

#include "define.h"
#include "Server.h"
#include "SplitStr.h"
#include <afxtempl.h>
#include "ConnectThread.h"

/////////////////////////////////////////////////////////////////////////////
// CFiveChessServerDlg dialog

class CFiveChessServerDlg : public CDialog
{
// Construction
public:
	CFiveChessServerDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFiveChessServerDlg)
	enum { IDD = IDD_FIVECHESSSERVER_DIALOG };
	CString	m_edit_pathb;
	CString	m_edit_pathw;
	CString	m_edit_portb;
	CString	m_edit_portw;
	CString	m_string;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFiveChessServerDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonClose();
	afx_msg void OnButtonChoiceb();
	afx_msg void OnButtonChoicew();
	afx_msg void OnButtonBegin();
	afx_msg void OnButtonEnd();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CServer m_server;      //服务器端
	//棋盘数组,用于显示棋盘
    BYTE Board[GRID_NUM][GRID_NUM];
	CConnectThread * m_pConnectThread; //指向类的指针
public:
	BYTE m_pBoard[GRID_NUM][GRID_NUM];
	int count;
	int point;
};

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

#endif // !defined(AFX_FIVECHESSSERVERDLG_H__D7C498FB_6EDA_4E96_945F_769F84E37EEA__INCLUDED_)

⌨️ 快捷键说明

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