⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 comsetting.h

📁 这是一个关于惯性平台控制的软件
💻 H
字号:
#if !defined(AFX_COMSETTING_H__D028AC5E_934E_47DA_B061_43D61128D683__INCLUDED_)
#define AFX_COMSETTING_H__D028AC5E_934E_47DA_B061_43D61128D683__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComSetting.h : header file
//
//////////////////////////////////////////////////////////////////////////
#include "SerialPort.h"
/////////////////////////////////////////////////////////////////////////////
// CComSetting dialog

class CComSetting : public CDialog
{
// Construction
public:
	CComSetting(CWnd* pParent = NULL);   // standard constructor
	//////////////////////////////////////////////////////////////////////////
	HICON m_hIconRed;    //串口打开时的红灯图标句柄
	HICON m_hIconOff;    //串口关闭时的指示图标句柄
	int m_nBaud;       //波特率
	int m_nCom;         //串口号
	char m_cParity;    //校验
	int m_nDatabits;    //数据位
	int m_nStopbits;    //停止位
	CSerialPort m_Port;  //CSerialPort类对象

	//////////////////////////////////////////////////////////////////////////
// Dialog Data
	//{{AFX_DATA(CComSetting)
	enum { IDD = IDD_ComSetting };
	CComboBox	m_Baud;
	CComboBox	m_POC;
	CComboBox	m_DatumBits;
	CComboBox	m_PauseBits;
	CStatic	m_ctrlPortStatus;
	CStatic	m_ctrlIconOpenoff;
	CButton	m_ctrlOpenPort;
	CComboBox	m_Com;
	//}}AFX_DATA


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

// Implementation
protected:
	HICON m_hIcon;

	//////////////////////////////////////////////////////////////////////////
	DWORD m_dwCommEvents;
	BOOL m_bOpenPort;
	//////////////////////////////////////////////////////////////////////////
	
	// Generated message map functions
	//{{AFX_MSG(CComSetting)
	virtual BOOL  OnInitDialog();
	afx_msg void OnSelendokComboComselect();
	afx_msg void OnButtonOpenport();
	afx_msg void OnSelendokComboBaud();
	afx_msg void OnSelendokComboParity();
	afx_msg void OnSelendokComboStopbits();
	afx_msg void OnSelendokComboDatabits();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_COMSETTING_H__D028AC5E_934E_47DA_B061_43D61128D683__INCLUDED_)

⌨️ 快捷键说明

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