📄 stdafx.h
字号:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__4DF80909_7C26_11D5_967E_444553540000__INCLUDED_)
#define AFX_STDAFX_H__4DF80909_7C26_11D5_967E_444553540000__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
///////////////////////////////////////////////
//******* 定义常数 ***************
///////////////////////////////////////////////
#define MAX_CHANNEL 64
#define TIMER_NO 9
#define ONE_SECOND 100
#define SHIHUA_NUM 8
#define LONGCALL_NUM 12
#define ROW_OF_HEADLINE 0
#define COL_OF_LINE_NO 0
#define COL_OF_LINE_NUMBER 1
#define COL_OF_LINE_STATUS 2
#define COL_OF_CALLERID 3
#define COL_OF_CALLEEID 4
#define COL_OF_REMARK 5
#define DTMF_MODE 0 // 以DTMF方式收主叫
#define FSK_MODE 1 // 以FSK方式收主叫
#define LINE_INIT 1000 // 线路初试化状态
#define LINE_IDLE 1001 // 线路空闲状态
#define LINE_GET_DTMF_CALLERID 1050
#define LINE_GET_FSK_CALLERID 1051
#define LINE_WELCOME 1002 // 对外线放提示音状态
#define LINE_WELCOME1 1003 // 外线提示音结束转收码处理状态
#define LINE_GET_DTMF 1004 // 收DTMF码
#define LINE_WAIT_INTER_OFFHOOK 1005 // 等待内线摘机状态
#define LINE_INTER_CALL 1006 // 和内线通话状态
#define LINE_SHIHUA_CALL 1007
#define LINE_CONNECTING 1008
#define LINE_IP_CONNECTING 1009
#define LINE_IP_CONNECTED 1010
#define LINE_IP_ISCONNECT 1011
#define LINE_WAIT_HANGUP 1012 // 等待挂机状态
#define LINE_WAIT_OFFHOOK 1013
#define LINE_JUST_WAIT 1014 // 等待状态
#define LINE_WAIT_AND_JUDGE 1015
#define LINE_FREE_CALL 1020
#define LINE_SYSTEM_DEMO 1021
#define LINE_PLAY_RESULT 1022
#define LINE_VOICE_BOX 1030
#define LINE_RECORD 1031
static int channel;
static struct{ // 线路结构定义
int ChType; // 线路类型字:0,1,2 --内线、外线、悬空
char LineNum[50]; // 线路所对应的号码
// char DisStatusMessage[];
LPTSTR DisStatusMessage; // 显示线路状态信息
LPTSTR CallMessage;
LPTSTR CalleeID;
LPTSTR CallerID;
int Status; // 线路状态字,控制程序流程的转移标志
int DtmfPos; // 收到的DTMF码的数目
char DtmfArray[32]; // 用于存储DTMF码的数组
int CallCh; // 和被叫相连的主叫通道
int ConnectCh; // 和主叫相连的被叫通道
int WaiConnectCh; // 和内线相连用的外线通道**
int HoldCh; // 代接及拍叉簧转接时的保持通道
int SaveSubmiteCh; // 需要代接的通道
BOOL WorkFlag;
BOOL BusyFlag;
bool ListenFlag;
BOOL PRESSFLAG;
}TelLine[32];
static BOOL RunFlag=FALSE;
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__4DF80909_7C26_11D5_967E_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -