📄 detailcommon.h
字号:
#ifndef DETAILCOMMON_H_
#define DETAILCOMMON_H_
#pragma once
#pragma warning(disable:4244)
#include "MsgText.h"
/* Handle to a DIB */
DECLARE_HANDLE(HDIB);
////////define common structure in the programe////////
/////////DEFINE AREA IN MAINDATA.H///////////////////////////////
//----------------------- define num of const ------------------------
#define SS7MODE 0x00 //SS7 message
#define ABISMODE 0x10 //Abis message
#define V5MODE 0x20 //V5 message
#define VIEW5MODE 0x20 //V5 message
#define MAX_NUM_OF_STATION 9 //9节点机
#define MAX_NUM_OF_RACK 4 //zxw 2000-10-01 4 for rack in every Dock
#define MAX_NUM_OF_E1END 64 //64 for E1 port in every rack
#define MAX_NUM_OF_BUREAU 144 //144 Signal port
#define MAX_E1_IN_CWRACK 8
#define MAX_CWRACK_IN_RACK 8
#define MAX_SLOT_IN_E1 31 //new 31 德阳 8
#define MAX_NUM_OF_LINK 400 //
#define FACT_NUM_OF_LINK 400 //zxw 2000-10-05 修改消息显示
#define MAX_NUM_LINK_IN_NODE 192 //
#define MAX_NUM_OF_CRIT 30
#define MAX_NUM_OF_TSLOT 8
#define MAX_NUM_LINK_IN_GROUP 16
#define MAX_NUM_LINK_IN_DPCOPC 16
#define MAX_NUM_OF_LINK_SEL 256
#define MAX_LEN_OF_DETAILSHOW 32 //zxw 2000-08-18 增加消息原码显示控制
#define MAX_NUM_OF_STAADDR 1024 //for all jux cha tup & isup
#define MAX_NUM_OF_RECADDR 120
#define MAX_BYTE_NUM_OF_CRIT 511
#define MAX_BYTE_OF_FILE 20
#define SIZE_OF_DATA_AREA 65535u
#define SIZE_OF_PAGE_AREA 65535u
#define SIZE_OF_REC_AREA 65535u
//通信缓冲区大小
#define SIZE_OF_REQ_MQ_AREA 10240
#define SIZE_OF_COMM_BUF (640*1024+50)
#define ADDR_NUM 10
//inap ZXW 2000-12-01
#define INAP_CARD_NUM 100
#define INAP_CARD_LEN 12
//for edit for crit
#define CRIT_ROW_NUM 30
#define ROW_LEN 30
#define ROW_BYTE_LEN 60
#define PREDEFCRITNUM 10
#define BASECRITNUM 2
#define BASETRIGNUM 1
//----------------------- define MsgLayer's Const-------------------
//zxw 2000-10-05 修改消息显示
#define MSGTYPE_NUM 3
#define LSSUTYPE_NUM 6
#define MSUTYPE_NUM 7
#define SNTMSG_NUM 2
#define SNMMSG_NUM 27
#define SCCPMSG_NUM 18
#define SCMGMSG_NUM 5
#define TCAPMSG_NUM 5
#define TCAPCPNT_NUM 5
#define TUPMSG_NUM 57
#define ISUPMSG_NUM 52
#define MAPMSG_NUM 46
#define MAPERRMSG_NUM 38 //zxw 2000-09-01
#define MSGHEAD_NUM 5
#define ISUPMSGHEAD_NUM 6 //NEW ISUP
#define INAPMSG_NUM 33
#define INAPERRMSG_NUM 16
#define CAPMSG_NUM 19
#define CAPERRMSG_NUM 13
#define BSSMAPHEAD_NUM 4 //NEW BSSMAP
#define BSSMAPMSG_NUM 46
#define RADIORESHEAD_NUM 7 //NEW DTAP
#define RADIORESMSG_NUM 37
#define MOBILITYHEAD_NUM 6 //NEW DTAP
#define MOBILITYMSG_NUM 18
#define CALLCONTROLHEAD_NUM 6 //NEW DTAP
#define CALLCONTROLMSG_NUM 38
#define MSU_NUM 7
#define LSSU_NUM 7
#define FISU_NUM 6
#define IAM_KIND 1
#define IAI_KIND 2
#define GSM_KIND 5
#define NUM_OF_LINKSTATE 7
#define NUM_OF_PTPAGE 30 //Max PtPage
// --------timer type--------------------
#define MAINDDETIME 1
#define PINGTIME 2
#define SHOWSECTIME 3
#define TEMPUSETIME 4
#define ALARMTIME 5
#define TEMPTIME 6
#define MAX_DEFTIME 3
#define MAX_DEFBUSYTIME 3
/////////DEFINE AREA IN DATA.H///////////////////////////////
/* Define Local Const */
#define ALLJUXX 30000 //jux cha chart tab x scroll
#define ALLJUXSTEPX 40 //every sta number
#define ALLJUXPAGEX 400
#define CLIENTY 600
#define MAXDATAY 32000u
#define DATAORG 0
#define DATASTEPY 13
#define DATAPAGEY 300
#define MAXDETX 1600u //DETAIL
#define MAXDATAX 600
#define DATASTEPX 10
#define DATAPAGEX 300
//ERL SHOW
#define MAXERLX 3630
#define MAXERLY 5000
#define ERLSTEPX 10
#define ERLPAGEX 500
//PER SHOW
#define MAXPERX (MAX_NUM_OF_LINK-4)*PERSTEPX+1280 //12LINK
#define MAXPERY 8000
#define PERSTEPX 160
//TCAP SCROLL SHOW
#define MAXTCAPX 600 //12LINK
#define MAXTCAPY 800
#define TCAPSTEPY 16
#define TCAPPAGEY 100
//CIC SCROLL SHOW
#define MAXCICX 600 //12LINK
#define MAXCICY 32760u
#define CICSTEPY 14
#define CICPAGEY 400
#define Station_X 400
#define Station_Y 60
////////////////maindata.h variables////////////////////
//---------- define display color option-----------
struct tagScrOption {
LOGFONT TextFont;
int nFontSize;
COLORREF TextColor;
COLORREF ForColor;
COLORREF BkColor;
COLORREF SelectColor;
COLORREF TxColor;
COLORREF RxColor;
};
//------------define crit struct-------------------
struct tagCrit {
char CritStr[CRIT_ROW_NUM][ROW_LEN];
BYTE Crit[MAX_BYTE_NUM_OF_CRIT];
}; // --------------save file name to form CritTab
// --------------------show config
struct tagShowConfig{
BOOL FsnType;
BOOL TimeType;
BOOL O_MsgType;
BOOL O_MsgAddr;
BOOL O_Name;
BOOL O_Tel;
BOOL O_SccpApp;
BOOL D_Hex;
BOOL D_Type;
BOOL DPCHex;
} ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -