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

📄 gobangview.h

📁 单机版的五子棋游戏,利用MFC制作,具有一定的AI功能.
💻 H
字号:
// gobangView.h : interface of the CGobangView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GOBANGVIEW_H__47CDEE70_E856_43C8_8E35_B1E40A0D1704__INCLUDED_)
#define AFX_GOBANGVIEW_H__47CDEE70_E856_43C8_8E35_B1E40A0D1704__INCLUDED_

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


class CGobangView : public CView
{
protected: // create from serialization only
	CGobangView();
	DECLARE_DYNCREATE(CGobangView)

// Attributes
public:
	CGobangDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGobangView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGobangView();
	void CGobangView::xiazi();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	HICON m_hIconblack;
	HICON m_hIconwhite;

// Generated message map functions
protected:
	//{{AFX_MSG(CGobangView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnStartagain();
	afx_msg void OnBlack();
	afx_msg void OnWhite();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in gobangView.cpp
inline CGobangDoc* CGobangView::GetDocument()
   { return (CGobangDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_GOBANGVIEW_H__47CDEE70_E856_43C8_8E35_B1E40A0D1704__INCLUDED_)

⌨️ 快捷键说明

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