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

📄 fabc.h

📁 多线程串口通讯实例
💻 H
字号:
#if !defined(AFX_FABC_H__F02DF9EA_3A4D_4B01_80C4_81FC6F4B0844__INCLUDED_)
#define AFX_FABC_H__F02DF9EA_3A4D_4B01_80C4_81FC6F4B0844__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CFabc form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

class CFabc : public CFormView
{
protected:
	CFabc();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CFabc)

// Form Data
public:
	//{{AFX_DATA(CFabc)
	enum { IDD = IDD_FABC_FORM };
	CButton	m_openport;
	CComboBox	m_ctrlDataBits;
	CComboBox	m_ctrlBaud;
	CComboBox	m_ctrlStopBits;
	CComboBox	m_ctrlParity;
	CComboBox	m_ctrlPort;
	CString	m_read;
	CString	m_write;
	//}}AFX_DATA
	BOOL m_bConnected;
	int m_nParity;//校验位
	int m_nStopBits;//停止位
// Attributes
public:

// Operations
public:

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

// Implementation
protected:
	virtual ~CFabc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CFabc)
	afx_msg void Onsend();
	afx_msg void OnButtonOpencom();
	afx_msg void OnClosecom();
	afx_msg void Onread();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_FABC_H__F02DF9EA_3A4D_4B01_80C4_81FC6F4B0844__INCLUDED_)

⌨️ 快捷键说明

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