evccommdlg.h

来自「eVCComm3.0.zip eVC3.0写的程序」· C头文件 代码 · 共 64 行

H
64
字号
// eVCCommDlg.h : header file
//

#if !defined(AFX_EVCCOMMDLG_H__17294AD3_7708_4BD0_8FFA_C560AE604681__INCLUDED_)
#define AFX_EVCCOMMDLG_H__17294AD3_7708_4BD0_8FFA_C560AE604681__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CEVCCommDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CEVCCommDlg)
	enum { IDD = IDD_EVCCOMM_DIALOG };
	CEdit	m_RecvCountCtrl;
	CEdit	m_SendCountCtrl;
	CEdit	m_SendDataEditCtrl;
	CEdit	m_RecvDataEditCtrl;
	UINT	m_nPortNum;
	CString	m_sSendData;
	UINT	m_nRecvCount;
	int		m_nSendCount;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CEVCCommDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnButtonOpenport();
	afx_msg void OnButtonSend();
	afx_msg void OnButtonClear();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	afx_msg void OnButtonRts();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CSerialPort m_SerialPort;
	static void OnDataFromPort(void * data,DWORD nDataCount,void * context);
};

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

#endif // !defined(AFX_EVCCOMMDLG_H__17294AD3_7708_4BD0_8FFA_C560AE604681__INCLUDED_)

⌨️ 快捷键说明

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