📄 tapiwavedrivertestdlg.h
字号:
// TAPIWaveDriverTestDlg.h : header file
//
#if !defined(AFX_TAPIWAVEDRIVERTESTDLG_H__03F5CCDD_ADBB_426B_933B_C5900EE0D358__INCLUDED_)
#define AFX_TAPIWAVEDRIVERTESTDLG_H__03F5CCDD_ADBB_426B_933B_C5900EE0D358__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TAPIConnection.h"
#include "TWave.h"
#include "TDialString.h"
/////////////////////////////////////////////////////////////////////////////
// CTAPIWaveDriverTestDlg dialog
class CTAPIWaveDriverTestDlg : public CDialog,
private CtWaveSink,
private CtDialStringSink
{
// Construction
public:
CTAPIWaveDriverTestDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTAPIWaveDriverTestDlg)
enum { IDD = IDD_TAPIWAVEDRIVERTEST_DIALOG };
CButton m_MonitorDigits;
CButton m_StopButton;
CButton m_RecordButton;
CButton m_BrowseButton;
CButton m_SendButton;
CString m_InfoTextBox;
CString m_ebCallText;
CString m_strWaveFile;
CString m_strDialTones;
CString m_strLine;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTAPIWaveDriverTestDlg)
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;
CtWave m_Wave;
CtDialString m_DTMF;
CString m_strDialString;
UINT m_WaveDeviceID;
UINT m_SoundDeviceID;
bool m_bRecording;
bool m_bDigitMonitoringOn;
UINT m_bufcount;
// Generated message map functions
//{{AFX_MSG(CTAPIWaveDriverTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnDestroy();
afx_msg void OnButtonMakecall();
afx_msg void OnButtonAnswer();
afx_msg void OnButtonHangup();
afx_msg void OnButtonSendWAV();
afx_msg void OnButtonBrowseWAV();
afx_msg void OnButtonStop();
afx_msg void OnButtonRecord();
afx_msg void OnButtonTones();
virtual void OnCancel();
afx_msg void OnButtonTest1();
afx_msg void OnButtonMonitortone();
afx_msg void OnButtonGendigits();
afx_msg void OnButtonMondigits();
afx_msg void OnButtonSelectline();
afx_msg void OnClear();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// CtWaveSink events
virtual void OnWaveOutOpen();
virtual void OnWaveOutDone();
virtual void OnWaveInData();
// CtDialStringSink events
virtual void OnDialDone();
virtual void OnDialError();
protected:
void AddText(LPCTSTR pszNewText);
void CheckButtons();
void SetExtensionField();
private:
TAPIConnection m_TAPIConnection;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TAPIWAVEDRIVERTESTDLG_H__03F5CCDD_ADBB_426B_933B_C5900EE0D358__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -