📄 recorddlg.h
字号:
// RecordDlg.h : header file
//
#if !defined(AFX_RECORDDLG_H__82D09EE3_A49B_49C8_A933_28F5A11AA248__INCLUDED_)
#define AFX_RECORDDLG_H__82D09EE3_A49B_49C8_A933_28F5A11AA248__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ListenDlg.h"
#include "PlayFile.h"
#include "SetRecAGC.h"
enum TRUNK_STATE //self-defined channel state
{
TRK_IDLE, //idle
TRK_PICKUP, //off-hook
TRK_RECORD, //recording
TRK_OUTLINE, //off-line
TRK_RINGING //ringing
};
enum Control //recording working mode
{
VOICE_CTRL, //voice-control mode
VOLTAGE_CTRL, //voltage-control mode
DTMF_CTRL //code-control mode
};
typedef struct
{
int WorkState; //self-defined channel state
int ConState; //recording working mode
char szCallerId[20];//CallerId
char szDTMF[100]; //DTMF
int nIndex;
BOOL bIgnoreLineVoltage;
}TRK_STATE;
/////////////////////////////////////////////////////////////////////////////
// CRecordDlg dialog
class CRecordDlg : public CDialog
{
// Construction
public:
void InitLab();
TRK_STATE ChState[1000]; //channel state (self-defined channel state and record working mode)
int nMaxCh; //channel amounts declared in configuration file
void InitChList(void); //initialize list
BOOL InitCtiBoard(void); //initialize board
void UpdateChList(); //update list
CRecordDlg(CWnd* pParent = NULL); // standard constructor
CString strLab[10];
//0--IDC_STATIC_RecControl record working mode
//1--IDC_STATIC_Ch channel Id
//2--IDC_RADIO_ConState voice-control mode
//3--IDC_RADIO_ConState1 voltage-control mode
//4--IDC_RADIO_ConState2 code-control mode
//5--IDC_STATIC_OTHERS other function
//6-IDC_BUTTON_LISTEN set listen
//7--IDC_BUTTON_PLAY play file
//8--IDC_BUTTO_SETAGC set AGC
//9--IDCANCEL exit
// Dialog Data
//{{AFX_DATA(CRecordDlg)
enum { IDD = IDD_RECORD_DIALOG };
CComboBox m_CurLine;
CListCtrl m_ChList;
int m_Constate;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRecordDlg)
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(CRecordDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnRADIOConState();
afx_msg void OnRADIOConState1();
afx_msg void OnRADIOConState2();
afx_msg void OnButtonPlay();
afx_msg void OnSelchangeCOMBOCurLine();
afx_msg void OnDestroy();
afx_msg void OnButtonListen();
afx_msg void OnButtoSetagc();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RECORDDLG_H__82D09EE3_A49B_49C8_A933_28F5A11AA248__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -