📄 commondef.h
字号:
/*
* BREW Extension Library
* Copyright (c) 2003-2005 ANYSOFT.CN
* All Rights Reserved.
*/
/*!-----------------------------------
@file
@brief 一些抽象数据类型和常用宏的定义
-----------------------------------*/
#ifndef __COMMONDEF_H
#define __COMMONDEF_H
#include <assert.h>
#include "AEEStdLib.H"
////----------------------------------------------
////----type
typedef void* PVOID;
typedef char* PSTR;
typedef const char* PCSTR;
typedef boolean BOOL;
typedef BOOL* PBOOL;
typedef char CHAR;
typedef unsigned char UCHAR;
typedef short SHORT;
typedef SHORT* PSHORT;
typedef unsigned short USHORT;
typedef USHORT* PUSHORT;
typedef int INT;
typedef INT* PINT;
typedef unsigned int UINT;
typedef UINT* PUINT;
typedef long LONG;
typedef LONG* PLONG;
typedef unsigned long ULONG;
typedef ULONG* PULONG;
typedef int8 SBYTE;
typedef SBYTE* PSBYTE;
typedef int16 SWORD;
typedef SWORD* PSWORD;
typedef int32 SDWORD;
typedef SDWORD* PSDWORD;
typedef uint8 BYTE;
typedef BYTE* PBYTE;
typedef uint16 WORD;
typedef WORD* PWROD;
typedef uint32 DWORD;
typedef DWORD* PDWORD;
typedef WORD WPARAM;
typedef WPARAM* PWPARAM;
typedef DWORD DWPARAM;
typedef DWPARAM* PDWPARAM;
////----------------------------------------------
////----macro
#define SUCCEED(x) ((x)==SUCCESS)
#define FAILED(x) ((x)!=SUCCESS)
#define MEM_ZERO(p,Size) MEMSET((p),0,(Size))
#define SAFE_DELETE(p) do{if (p){delete p;p=NULL;}}while(0)
#define SAFE_RELEASE(TYPE,p) do{if (p){TYPE##_Release(p);p=NULL;}}while(0)
////----------------------------------------------
////----const
#define _MSG_LEN 64
#define _TEL_LEN 32
#define _USRNAME_LEN 20
#define _PWD_LEN 20
#define _NICK_LEN 20
#define _REAL_LEN 20
#define _SEX_MALE 1
#define _SEX_FEMALE 0
#define _SEX_COUNT 2
#define _BUF_LEN 32
#define _SERVER_LEN 32
#define BK_COLOR MAKE_RGB(0,0,0)
////----------------------------------------------
////----func
#define EXIT() \
do{\
Close();\
m_arbiter->Arbit(m_btParentID);\
}while(0)
#define LOAD_STR(nID,wszBuf) \
ISHELL_LoadResString( m_app->m_pIShell,m_arbiter->GetResFile(),\
nID,wszBuf,sizeof(wszBuf))
#define HANDLE_EVENT(MsgProc) do{ if (MsgProc) return TRUE; }while(0)
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -