serialportconfig.h

来自「功能主要是串口通信和网络通信方面的」· C头文件 代码 · 共 63 行

H
63
字号
#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 + =
减小字号Ctrl + -
显示快捷键?