comrdlg.h

来自「VC++高级编程技巧与示例」· C头文件 代码 · 共 59 行

H
59
字号
// comrDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES

#if !defined(AFX_COMRDLG_H__33178FE7_1866_11D4_8FB0_5254AB174617__INCLUDED_)
#define AFX_COMRDLG_H__33178FE7_1866_11D4_8FB0_5254AB174617__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CComrDlg dialog

class CComrDlg : public CDialog
{
// Construction
public:
	CString m_Str;
	CComrDlg(CWnd* pParent = NULL);	// standard constructor
	int count;
// Dialog Data
	//{{AFX_DATA(CComrDlg)
	enum { IDD = IDD_COMR_DIALOG };
	CEdit	m_edit1;
	CButton	m_Start;
	CMSComm	m_com2;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CComrDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CComrDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnComm();
	afx_msg void OnClear();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COMRDLG_H__33178FE7_1866_11D4_8FB0_5254AB174617__INCLUDED_)

⌨️ 快捷键说明

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