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

📄 talkdlg.h

📁 TAPI编程应用
💻 H
字号:
// talkdlg.h : header file for CTalkDlg
// (c) Dialogic corp 1995, 1996

#include "xstatic.h"
#define MAXLINES 	16

#ifndef WM_COMMANDHELP
#define WM_COMMANDHELP 0x365
#endif

// to obtain this number in a REAL application,you need to query the dialog
// to get the first 'unoccupied' control ID & use it.
#define CONTROL_ARRAY_START 1060	// interim solution

typedef struct _linecontrol
{
	UINT uiActionID;
	UINT uiInfoID;
	CButton 	*pbtnAction;		
	CButton 	*pbtnInfo;
	CXstatic 	*pFrame;
	CStatic 	*pctlLineNum;
	CTapiLine 	*pctlLine;
	LPVOID	 	pInfoDlg;
} LINECONTROL, *PLINECONTROL;		
/////////////////////////////////////////////////////////////////////////////
// CTalkDlg dialog

class CTalkDlg : public CDialog
{
// Construction
public:
	CTalkDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTalkDlg)
	enum { IDD = IDD_TALKER32_DIALOG };
	CButton	m_btnDial;
	CEdit	m_ctlDialString;
	CComboBox	m_ctlActiveCalls;
	CButton		m_ctlLineFrame;
	CStatic		m_ctlLineNum0;
	CButton		m_btnInfo0;
	CButton		m_btnAction0;
	CXstatic	m_ctlFrame0;
	CString		m_csDialString;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTalkDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	LINECONTROL m_LineControls[MAXLINES];	// static array for now - replace w/alloc
	BOOL CreateLineWindows(PLINECONTROL pLineControl);
	void GetNextRect(RECT *pLastRect, RECT *pNewRect, int ndX, int ndY, int nW, int nH);
	BOOL DetermineLinePos(POINT *ppntNew);

protected:
	void OnAction(DWORD);
	void OnInfo(DWORD);
	void UpdateDisplayStatus(DWORD dwLineID);
	void AddDigit(LPCSTR lpDigit);
	void DestroyPropSheet(DWORD dwIndex = 0xffffffff, BOOL bDestroyIfCalls=FALSE);
	void AddColumn();

	// actual number of lines is a public member of CTapiApp
protected:
	HICON m_hIcon;
	DWORD m_dwLines;
	int m_nLastX;
	int m_nLastY;
	UINT m_uiLastID;

	// Generated message map functions
	//{{AFX_MSG(CTalkDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnDestroy();
	afx_msg void OnDial();
	afx_msg LONG OnWomDone(UINT, LONG);
	afx_msg LONG OnWimData(UINT, LONG);
	virtual void OnCancel();
	afx_msg void OnClear();
	afx_msg void OnContextHelp();
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
	afx_msg void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

⌨️ 快捷键说明

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