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

📄 comsetup.h

📁 采用文档类方法实现的一种串口通讯协议。可以借鉴参考
💻 H
字号:
#if !defined(AFX_COMSETUP_H__17BA688B_8112_411C_8350_A2B52AF64E77__INCLUDED_)
#define AFX_COMSETUP_H__17BA688B_8112_411C_8350_A2B52AF64E77__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComSetup.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CComSetup dialog
//#include "serialport.h"

class CComSetup : public CDialog
{
// Construction
public:	
	CComSetup(CWnd* pParent = NULL);   // standard constructor
	CComSetup(CWnd* pParent, DCB dcb);
	
// Dialog Data
	//{{AFX_DATA(CComSetup)
	enum { IDD = IDD_CommSetup };
	CComboBox	m_cbComPort;
	CComboBox	m_cbComStop;
	CComboBox	m_cbComFlow;
	CComboBox	m_cbComData;
	CComboBox	m_cbComCheck;
	CComboBox	m_cbComBaud;
	CString	m_strComBaud;
	CString	m_strComCheck;
	CString	m_strComData;
	CString	m_strComFlow;
	CString	m_strComStop;
	CString	m_strComPort;
	//}}AFX_DATA	

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

protected:
	void mf_CountValidComm();

	DCB m_dcb;
	

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CComSetup)
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_COMSETUP_H__17BA688B_8112_411C_8350_A2B52AF64E77__INCLUDED_)

⌨️ 快捷键说明

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