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

📄 stdafx.h

📁 一款战旗类的打飞机游戏源码
💻 H
字号:
#pragma once
#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN		// 从 Windows 标头中排除不常使用的资料
#endif
//WINDOWS XP
#ifndef WINVER		
#define WINVER 0x0500
#endif
//WINDOWS XP
#ifndef _WIN32_WINNT	
#define _WIN32_WINNT 0x0500
#endif						
//WINDOWS ME
#ifndef _WIN32_WINDOWS	
#define _WIN32_WINDOWS 0x0500
#endif
//IE 6.0
#ifndef _WIN32_IE			
#define _WIN32_IE 0x0600
#endif
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS
#define _AFX_ALL_WARNINGS

#include <afxwin.h> 
#include <afxext.h>
#include <afxdtctl.h>
#include <afxcmn.h>
#include <afxsock.h>

#ifdef _DEBUG
inline void DUMP(CString a){afxDump <<a<<"\n";}
inline void DUMP1(CString a,int b){CString s;s.Format(L"%s:%d\n",a,b);afxDump <<s;}
inline void DUMP2(CString a,int b,int c){CString s;s.Format(L"%s:%d,%d\n",a,b,c);afxDump <<s;}
#pragma warning(disable:4244)//INT_PTR 2 int

#else

#define DUMP(a) ((void)0)
#define DUMP1(a,b) ((void)0)
#define DUMP2(a,b,c) ((void)0)
#endif

enum _tag{tagBLACK=0,tagNONE=1,tagBODY=2,tagHEAD=3,tagTEST=4,tagFORCE=0x7FFFFFFF};
enum PlaneDirect{pdNO= 0,pdUP=8,pdRIGHT=4,pdDOWN=2,pdLEFT=1};
enum MBU{mbNONE=0,mbDEL=1,mbMax=2,mbSEL=3,mbCANT=4,mbOKMAX=5,mbNEXT=6,mbCANCEL=7};
enum _state{
		stNONE = 0,stBACK=10,//nothing
		stPOS=1,stPOSBK=11,//position code | PosX=x [1,..] PosY=y [1,..]
		stCHAT=2,stCHATBK=12,//chat string
		stCONN=3,stCONNBK=13,//connected
		stDISC=4,stDISCBK=14,//dis connected
		stSTART=5,stSTARTBK=15,//start a game connected
		stHIT=6,stHITBK=16,//Hit test info|str="BYE"
		stLOSE=7,stLOSEBK=17,//sender is lose...

		stFORCE = 0x7FFFFFFF
};


#include "resource.h"

#include "lsnsock.h"
#include "ChatRichEditCtrl.h"
#include "playzone.h"
#include "bombplane.h"
#include "bombplaneDlg.h"

⌨️ 快捷键说明

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