ff.h

来自「利用Visual c++编程思想方法实现五子棋游戏的程序设计整个过程」· C头文件 代码 · 共 70 行

H
70
字号
// ff.h : main header file for the FF application
//

#if !defined(AFX_FF_H__2D0BB68F_AEA0_4205_AB26_8D4D53CC91E0__INCLUDED_)
#define AFX_FF_H__2D0BB68F_AEA0_4205_AB26_8D4D53CC91E0__INCLUDED_

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

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

#define DIVISIONS	15
#define CELLSIZE	40
#define PORT_NUM	762

#define DISCONNECT 99
#define DECLINE 100
#define ACCEPT	101

#define COORDS	102
#define UWIN	110
#define IWIN	120 // black win
#define ULOSE	130	// white win
#define EVEN	140
#define SURRENDER	150
#define NEWGAME		160
#define NONEWGAME	170

#define WM_USER_DECLINED (WM_USER + 100)
#define WM_USER_NEWGAME	(WM_USER + 101)

/////////////////////////////////////////////////////////////////////////////
// CFfApp:
// See ff.cpp for the implementation of this class
//

class CFfApp : public CWinApp
{
public:
	CFfApp();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFfApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CFfApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


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

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

#endif // !defined(AFX_FF_H__2D0BB68F_AEA0_4205_AB26_8D4D53CC91E0__INCLUDED_)

⌨️ 快捷键说明

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