dlgsetcom.h

来自「一个VC++编写的串口通信程序」· C头文件 代码 · 共 58 行

H
58
字号
#if !defined(AFX_DLGSETCOM_H__96857BB3_AE17_4DF9_9736_3A52A3597555__INCLUDED_)
#define AFX_DLGSETCOM_H__96857BB3_AE17_4DF9_9736_3A52A3597555__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSetCom dialog

class CDlgSetCom : public CDialog
{
// Construction
public:
	CDlgSetCom(int ncom,UINT nbps,CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgSetCom)
	enum { IDD = IDD_SETCOM };
	CComboBox	m_cmbBPS;
	int		m_iBPS;
	int		m_iCOM;
	int		m_iParity;
	int		m_iStopBits;
	CString	m_szByteSize;
	//}}AFX_DATA
	UINT	m_nbps;
	int		m_ncom;
	int		m_nbytesize;

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgSetCom)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

extern BYTE	_PARITY[8];
extern BYTE	_STOPBITS[4];

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

#endif // !defined(AFX_DLGSETCOM_H__96857BB3_AE17_4DF9_9736_3A52A3597555__INCLUDED_)

⌨️ 快捷键说明

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