⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calldlg.h

📁 三汇CTI示例程序源码
💻 H
字号:
// CallDlg.h : header file
//

#if !defined(AFX_CALLDLG_H__16813346_96B5_11D4_8EBC_00108804A3F0__INCLUDED_)
#define AFX_CALLDLG_H__16813346_96B5_11D4_8EBC_00108804A3F0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



enum TRUNK_STATE {
	TRK_IDLE,
	TRK_WAIT_CONNECT,
	TRK_PLAY_WELCOM,
	TRK_CHECK_PLAY_WELCOM,
	TRK_PLAY_SELECT,
	TRK_CHECK_PLAY_PASSWORD,
	TRK_CHECK_REC_END,
	TRK_CHECK_PLAY_BYEBYE,
	TRK_CHECK_PLAY_RECORD,
	TRK_WAIT_USER_HANGUP,
	TRK_WAIT_USER_PICKUP,
	TRK_CHECK_PLAY_SELECT,
	TRK_CHECK_REC_START,
	TRK_NOTRK
};


typedef struct{
	bool  EnCalled;
	int   lineState;
	TRUNK_STATE Step ;		//state of current channel
	int UserCh;
	CString pErrMsg;
	CString pCallerId;
	unsigned long dwTimeOutCounter;
} TRUNK_STRUCT;


/////////////////////////////////////////////////////////////////////////////
// CCallDlg dialog

class CCallDlg : public CDialog
{
// Construction
public:
	char CurPath[201];
	int nTotCh;
	
	TRUNK_STRUCT ATrkCh[100];
	void UpDateATrunkChListCtrl();
	void InitDTrunkListCtrl();
	void InitATrunkCh();
	bool InitCtiSystem();
	void AppErrorHandler(int ch);
	void ScanATrunkCh(void);

	int SearchIdleUserCh(void);

	CCallDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCallDlg)
	enum { IDD = IDD_CALL_DIALOG };
	CListCtrl	m_TrkChList;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCallDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCallDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CALLDLG_H__16813346_96B5_11D4_8EBC_00108804A3F0__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -