config.h

来自「多文档界面设计配置文件读写串口操作串口封装类」· C头文件 代码 · 共 56 行

H
56
字号
#if !defined(AFX_CONFIG_H__FAC5C55D_88E6_4228_A8F3_2A6B92898886__INCLUDED_)
#define AFX_CONFIG_H__FAC5C55D_88E6_4228_A8F3_2A6B92898886__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CConfig dialog

class CConfig : public CDialog
{
// Construction
public:
	CConfig(CWnd* pParent = NULL);   // standard constructor
public:
	int n_PORT,	n_BAUDRATE,	n_BITSIZE, n_STOPBIT, n_TIMER;
	char n_PARITY;
	CString n_RTUID;
public:
	// 读配置文件
	void readconfig(void);
	// 写配置文件
	void writeconfig(void);
// Dialog Data
	//{{AFX_DATA(CConfig)
	enum { IDD = IDD_CONFIG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CConfig)
	afx_msg void OnReadcfparity();
	afx_msg void OnWritecf();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_CONFIG_H__FAC5C55D_88E6_4228_A8F3_2A6B92898886__INCLUDED_)

⌨️ 快捷键说明

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