LINEINFO.H
资源名称:tapi3.zip [点击查看]
上传用户:chinamans
上传日期:2013-03-17
资源大小:202k
文件大小:3k
源码类别:
TAPI编程
开发平台:
Visual C++
- // lineinfo.h : header file for ClineInfo
- // (c) Dialogic corp 1995, 1996
- /////////////////////////////////////////////////////////////////////////////
- // CLineInfo dialog
- class CInfo;
- class CLineInfo : public CPropertyPage
- {
- DECLARE_DYNCREATE(CLineInfo)
- // Construction
- public:
- CLineInfo();
- ~CLineInfo();
- // data
- public:
- DWORD m_dwCalls;
- CTapiLine *m_pLine;
- CTapiCall *m_ppCalls[5];
- CInfo *m_pParent;
- CString m_csWaveName;
- CString m_csWaveRecName;
- CString m_csLineName;
- BOOL m_bRemote; // This line is running on the remote computer
- int m_nFormatID;
- DWORD m_dwRecFileSize;
- // Dialog Data
- //{{AFX_DATA(CLineInfo)
- enum { IDD = IDD_LINEINFO };
- CStatic m_ctlWaveName;
- CButton m_btnAutoPlay;
- CButton m_btnDevCaps;
- CButton m_btnAutoAnswer;
- CString m_csLineInfo;
- BOOL m_fAuto;
- CString m_csDisplayWaveName;
- BOOL m_fAutoPlay;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(CLineInfo)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void FitWaveName(); // fits the wave file name into available space
- void DisplayDevStatus(); // maps to lineGetLineDevStatus
- void DisplayDevCaps(); // maps to lineGetLineDevStatus
- protected:
- // Generated message map functions
- //{{AFX_MSG(CLineInfo)
- virtual BOOL OnInitDialog();
- afx_msg void OnDevcaps();
- afx_msg void OnConfig();
- afx_msg void OnAutoanswer();
- afx_msg void OnBrowse();
- afx_msg void OnGetdevstatus();
- afx_msg void OnAutoplay();
- afx_msg void OnSetFocus(CWnd* pOldWnd);
- afx_msg void OnWaveformat();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- // CInfo
- class CInfo : public CPropertySheet
- {
- DECLARE_DYNAMIC(CInfo)
- // Construction
- public:
- CInfo(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
- CInfo(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0, LPVOID lpLine = NULL);
- // Attributes
- public:
- CLineInfo m_LineInfo;
- CCallInfo m_CallInfo[5];
- CButton *m_pbtnClose;
- CButton *m_pbtnHelp;
- // Operations
- public:
- void BuildSheet(LPVOID lpLine = NULL);
- void CreateCloseButton();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CInfo)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CInfo();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CInfo)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
- afx_msg void OnClose();
- afx_msg void OnContextHelp();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////