newatdlg.h

来自「VisualC++通信编程工程实例精解 Chapter 2 Example」· C头文件 代码 · 共 69 行

H
69
字号
// NewATDlg.h : header file
//

#if !defined(AFX_NEWATDLG_H__65A6FEC9_DDC0_11D5_971D_0050BADA81C3__INCLUDED_)
#define AFX_NEWATDLG_H__65A6FEC9_DDC0_11D5_971D_0050BADA81C3__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CNewATDlg dialog
class CYsATModem;
class CStateDlg;
class CNewATDlg : public CDialog
{
// Construction
public:
	CNewATDlg(CWnd* pParent = NULL);	// standard constructor
	CYsATModem* m_ATModem;
	CStateDlg* m_stateDlg;
// Dialog Data
	//{{AFX_DATA(CNewATDlg)
	enum { IDD = IDD_NEWAT_DIALOG };
	int		m_iComPort;
	CString	m_sRead;
	int		m_iTimeOut;
	int		m_iBufSize;
	CString	m_sWrite;
	CString	m_sDialNumber;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNewATDlg)
	public:
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL
	static UINT CNewATDlg::GetStateThread(PVOID pLaram);
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CNewATDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonInitalize();
	afx_msg void OnButtonDial();
	afx_msg void OnButtonHangup();
	afx_msg void OnButtonRead();
	afx_msg void OnButtonWrite();
	afx_msg void OnButtonWaitring();
	virtual void OnCancel();
	afx_msg void OnButtonStopstate();
	afx_msg void OnMove(int x, int y);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

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

#endif // !defined(AFX_NEWATDLG_H__65A6FEC9_DDC0_11D5_971D_0050BADA81C3__INCLUDED_)

⌨️ 快捷键说明

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