comconfig.h

来自「最近做的一款温湿度变送器的上位软件」· C头文件 代码 · 共 61 行

H
61
字号
#if !defined(AFX_COMCONFIG_H__933422D7_1FC2_4D06_95B5_A461E78E06AA__INCLUDED_)
#define AFX_COMCONFIG_H__933422D7_1FC2_4D06_95B5_A461E78E06AA__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CComConfig dialog

class CComConfig : public CPropertyPage
{
	DECLARE_DYNCREATE(CComConfig)

// Construction
public:
	int		m_nParity;		//校验位
	int		m_nStopBits;	//停止位
	int		m_nBaud;
	int		m_nPort;
	int		m_nDataBits;

	CComConfig();
	~CComConfig();

// Dialog Data
	//{{AFX_DATA(CComConfig)
	enum { IDD = IDD_DIALOG_SetComm };
	CComboBox	m_ctrlParity;
	CComboBox	m_ctrlStopBits;
	CComboBox	m_ctrlDataBits;
	CComboBox	m_ctrlBaud;
	CComboBox	m_ctrlPort;
	//}}AFX_DATA


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

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CComConfig)
	afx_msg void OnButton1();
	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_COMCONFIG_H__933422D7_1FC2_4D06_95B5_A461E78E06AA__INCLUDED_)

⌨️ 快捷键说明

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