serialtestdlg.h

来自「一个基于VC++的串口通讯的 小程序」· C头文件 代码 · 共 61 行

H
61
字号
// SerialTestDlg.h : header file
//

#if !defined(AFX_SERIALTESTDLG_H__0547A28F_9A0F_4574_B940_C1FB3BD2A523__INCLUDED_)
#define AFX_SERIALTESTDLG_H__0547A28F_9A0F_4574_B940_C1FB3BD2A523__INCLUDED_

#include "SerialPort.h"	// Added by ClassView
#include "KTimer.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSerialTestDlg dialog

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

    LRESULT Handler(WPARAM, LPARAM);
    CSerialPort m_CommPort;

// Dialog Data
	//{{AFX_DATA(CSerialTestDlg)
	enum { IDD = IDD_SERIALTEST_DIALOG };
	CEdit	m_edtSend;
	CEdit	m_edtReceive;
	DWORD	m_dwPort;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSerialTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOpenComm();
	afx_msg void OnSend();
	afx_msg void OnBtnCpuSpeed();
	afx_msg void OnKillfocusEditPort();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
};

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

#endif // !defined(AFX_SERIALTESTDLG_H__0547A28F_9A0F_4574_B940_C1FB3BD2A523__INCLUDED_)

⌨️ 快捷键说明

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