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

📄 serialportconfig.h

📁 功能主要是串口通信和网络通信方面的
💻 H
字号:
#if !defined(AFX_SERIALPORTCONFIG_H__F09D2E88_3FBB_46C3_989E_F12BE4483EE8__INCLUDED_)
#define AFX_SERIALPORTCONFIG_H__F09D2E88_3FBB_46C3_989E_F12BE4483EE8__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSerialPortConfig dialog

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

	int m_nBaud;       //波特率
	int m_nCom;        //串口号
	char m_cParity;    //校验
	int m_nDatabits;   //数据位
	int m_nStopbits;   //停止位
	int m_nBufferSize; //缓冲区
	BOOL m_bClosePort;
// Dialog Data
	//{{AFX_DATA(CSerialPortConfig)
	enum { IDD = IDD_DIALOG_SERIAL_PORT };
		// NOTE: the ClassWizard will add data members here
	CComboBox	m_StopBits;
	CComboBox	m_Speed;
	CComboBox	m_DataBits;
	CComboBox	m_Com;
	CComboBox	m_Parity;
	CComboBox   m_Buffer;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSerialPortConfig)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnBtnClosePort( );
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SERIALPORTCONFIG_H__F09D2E88_3FBB_46C3_989E_F12BE4483EE8__INCLUDED_)

⌨️ 快捷键说明

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