duel.h

来自「2D即时战略游戏VC源码」· C头文件 代码 · 共 77 行

H
77
字号
/*==========================================================================
 *
 *  Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
 *
 *  File:   duel.h
 *  Content:    main include file
 *
 *
 ***************************************************************************/

#ifndef DUEL_INCLUDED
#define DUEL_INCLUDED

#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <windowsx.h>
#include <mmsystem.h>
#include "resource.h"
#include <tchar.h>

/*
 * Application messages
 */

#define UM_LAUNCH       WM_USER
#define UM_ABORT        WM_USER+1
#define UM_RESTARTTIMER WM_USER+2

// program states
enum
{
    PS_SPLASH,
    PS_ACTIVE,
    PS_REST
};

#define     MAX_SCREEN_X    639
#define     MAX_SCREEN_Y    479
#define     MAX_PLAYERNAME  50
#define     MAX_SESSIONNAME 50
#define     MAX_SPNAME      50
#define     MAX_CLASSNAME   50
#define     MAX_WINDOWTITLE 50
#define     MAX_ERRORMSG    256
#define     MAX_FONTNAME    50
#define     MAX_HELPMSG     512

#define     RECEIVE_TIMER_ID    1
#define     RECEIVE_TIMEOUT     1000    // in milliseconds

// default window size
#define     MAX_DEFWIN_X    640
#define     MAX_DEFWIN_Y    480


// tree view image info
#define CX_BITMAP       25
#define CY_BITMAP       25
#define NUM_BITMAPS      2

// registry info
#define DUEL_KEY (TEXT("Software\\Microsoft\\Duel"))

// macros
#define DEBUG_OUT(s) OutputDebugString(s);

/*
 * fn prototypes
 */

void            CleanupApplication(void);
BOOL            LaunchedByLobby(void);
HWND            ShowConnectStatus(void);

#endif

⌨️ 快捷键说明

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