📄 dtp_event_vcdlg.h
字号:
// DTP_Event_VCDlg.h : header file
//
#if !defined(AFX_DTP_EVENT_VCDLG_H__B3DCE24A_E157_4D3C_B711_FDB6CA134CD4__INCLUDED_)
#define AFX_DTP_EVENT_VCDLG_H__B3DCE24A_E157_4D3C_B711_FDB6CA134CD4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "../../../../api/vc6.0/inc/shpa3api.h"
/////////////////////////////////////////////////////////////////////////////
// CDTP_Event_VCDlg dialog
#define MAX_CIC 1000 //Maximum number of the monitored circuits
//User-defined circuit status
enum CIRCUIT_STATE
{
CIRCUIT_IDLE, //Idle state
CIRCUIT_RCV_PHONUM, //State of receiving phone number
CIRCUIT_RINGING, //State of ringing
CIRCUIT_TALKING //State of talking
};
enum RECORD_DIRECTION
{
CALL_IN_RECORD, //Incoming call recording
CALL_OUT_RECORD, //Outgoing call recording
MIX_RECORD //Mix-record of incoming/outgoing call
};
typedef struct tagCIC_STRUCT
{
int nCicState; //State of monitored circuits
char szCallerId[20]; //Calling party number
char szCalleeId[20]; //Called party number
char szCallInDtmf[100]; //DTMF received on the incoming channel
char szCallOutDtmf[100]; //DTMF received on the outgoing channel
WORD wRecDirection; //Recording direction
int nCallInCh; //Incoming channel
int nCallOutCh; //Outgoing channel
int nCallInIndex; //Used to denote which number is the DTMF received on the incoming channel
int nCallOutIndex; //Used to denote which number is the DTMF received on the outgoing channel
}CIC_STRUCT;
class CDTP_Event_VCDlg : public CDialog
{
// Construction
public:
CDTP_Event_VCDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDTP_Event_VCDlg)
enum { IDD = IDD_DTP_EVENT_VC_DIALOG };
CListCtrl m_CicList;
CComboBox m_cmbCic;
int m_nRecFormat;
int m_nCallFnMode;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDTP_Event_VCDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CDTP_Event_VCDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnRadioCallIn();
afx_msg void OnRadioCallOut();
afx_msg void OnRadioMix();
afx_msg void OnSelchangeComboCic();
afx_msg void OnDestroy();
afx_msg void OnRadioCircuit();
afx_msg void OnRadioCh();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
CIC_STRUCT CicState[MAX_CIC]; //Monitored circuits
int nMaxCic; //Maximum number of the monitored circuits
BOOL InitCtiBoard(); //Initialize board
void InitCircuitListCtrl(); //Initialize list
void UpdateCircuitListCtrl(); //Update list
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DTP_EVENT_VCDLG_H__B3DCE24A_E157_4D3C_B711_FDB6CA134CD4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -