commsetdlg.h

来自「串行通讯程序,为电池分析仪与电脑通讯软件,效果不错.」· C头文件 代码 · 共 59 行

H
59
字号
#if !defined(AFX_COMMSETDLG_H__6BA42D30_18C7_4992_93C1_2E1DB58CD346__INCLUDED_)
#define AFX_COMMSETDLG_H__6BA42D30_18C7_4992_93C1_2E1DB58CD346__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CCommSetDlg dialog

class CCommSetDlg : public CDialog
{
// Construction
public:
	CCommSetDlg(CWnd* pParent = NULL);   // standard constructor
	BOOL m_bConnected;
	BOOL IsDlgShow;	
    UINT  m_sPort;		// portnumber (1..4)
    char  m_nParity;		// parity 
    UINT  m_nStopBits;		// stopbits 
// Dialog Data
	//{{AFX_DATA(CCommSetDlg)
	enum { IDD = IDD_COMMDLG };
	CComboBox	m_ctrlStopBits;
	CComboBox	m_ctrlParity;
	CComboBox	m_ctrlPort;
	CComboBox	m_ctrlDataBits;
	CComboBox	m_ctrlBaud;
    UINT  m_sBaud;			// baudrate
    UINT  m_sDataBits;		// databits 
	//}}AFX_DATA

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

// Implementation
protected:

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

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

#endif 

// !defined(AFX_COMMSETDLG_H__6BA42D30_18C7_4992_93C1_2E1DB58CD346__INCLUDED_)

⌨️ 快捷键说明

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