www.pudn.com > dialogic_IVR.rar > PANSRMTCDLG.H


// PansrMTCDlg.h : header file 
// 
 
#ifndef __AFXWIN_H__ 
	#error include 'stdafx.h' before including this file for PCH 
#endif 
 
#include "resource.h"		// main symbols 
#include "Answer.h" 
#include "ChanStatDialog.h" // for CChanStatDialog 
#include "ChanStatSmallDialog.h" // for CChanStatSmallDialog 
 
///////////////////////////////////////////////////////////////////////////// 
// CPansrMTCDlg dialog 
#define DLGC_STOP_STR "关闭语音服务" 
#define DLGC_START_STR "启动语音服务" 
#define DLGC_STARTTING_STR "Initializing Dialogic Channels..." 
#define DLGC_STOPPING_STR "Closing Dialogic Channels" 
 
class CPansrMTCDlg : public CDialog 
{ 
// Construction 
public: 
	void OnRadioAnalog(); 
	~CPansrMTCDlg(); 
	CPansrMTCDlg(CWnd* pParent = NULL);	// standard constructor 
  ARG_STRUCT m_args; 
 
// Dialog Data 
	//{{AFX_DATA(CPansrMTCDlg) 
	enum { IDD = IDD_PANSRMTC_DIALOG }; 
	CButton	m_setting; 
	CStatic	m_static_dti; 
	CStatic	m_static_num_chan; 
	CStatic	m_static_frontend; 
	CEdit	m_edit_num_chan; 
	CEdit	m_edit_dti; 
	CEdit	m_edit_d4x; 
	CStatic	m_static_d4x; 
	CButton	m_button_peb; 
	CButton	m_dlgc_button; 
	int		m_d4xbdnum; 
	int		m_dtibdnum; 
	int		m_maxchans; 
	BOOL	m_scbus; 
	//}}AFX_DATA 
  // for some reason, ClassWizard doesn't like generating variables 
  // for radio buttons ?!?!?  So I do them myself. 
  BOOL m_analog; // for the m_frontend variable 
  BOOL m_e1; 
  BOOL m_t1; 
  CButton m_button_analog;  
  CButton m_button_e1; 
  CButton m_button_t1; 
   
  BOOL m_bRuning; 
   
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CPansrMTCDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	int TryChannelRect(RECT* chanRect, RECT* dlgRect, BOOL resizeWidth = FALSE); 
	void AddChannelDialogs(); 
	void RemoveChannelDialogs(); 
	void EnableConfiguration(BOOL enable); 
	int m_frontend; 
	RECT m_default_client_rect; 
  enum 
    {DLGC_STOPPED_ST, // dialogic stuff is NOT running 
    DLGC_STARTED_ST, // dialogic stuff IS RUNNING 
    CLOSING_ST // user has signalled us to close app 
    }; 
	HANDLE m_dlgc_thread; 
	int m_state; 
	HICON m_hIcon; 
  CChanStatSmallDialog *m_chan_status_ptr[MAXCHANS]; 
 
	// Generated message map functions 
	//{{AFX_MSG(CPansrMTCDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnDestroy(); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnDlgcButton(); 
	virtual void OnOK(); 
	virtual void OnCancel(); 
	afx_msg void OnClose(); 
	afx_msg void OnHelpIndex(); 
	afx_msg void OnSetting(); 
	afx_msg void OnTimer(UINT nIDEvent); 
	afx_msg void OnButtonCompile(); 
	afx_msg void OnButtonSimuphone(); 
	//}}AFX_MSG 
  afx_msg LPARAM OnDialogicStopped(WPARAM, LPARAM); 
  afx_msg LPARAM OnDialogicState(WPARAM chanNum, LPARAM state); 
  afx_msg LPARAM OnDialogicCode(WPARAM chanNum, LPARAM accessCode); 
	DECLARE_MESSAGE_MAP() 
};