📄 serial communicationdlg.h
字号:
// Serial CommunicationDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mdctogglebutton.h"
#include "ietimer.h"
#include "slider.h"
#include "labelcontrol.h"
//}}AFX_INCLUDES
#include "RSComm.h"
#if !defined(AFX_SERIALCOMMUNICATIONDLG_H__676515F0_2290_11D4_B85B_0000C00677C9__INCLUDED_)
#define AFX_SERIALCOMMUNICATIONDLG_H__676515F0_2290_11D4_B85B_0000C00677C9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CSerialCommunicationDlg dialog
class CSerialCommunicationDlg : public CDialog
{
// Construction
public:
CSerialCommunicationDlg(CWnd* pParent = NULL); // standard constructor
RSComm Comms;
// Dialog Data
//{{AFX_DATA(CSerialCommunicationDlg)
enum { IDD = IDD_SERIALCOMMUNICATION_DIALOG };
CMdcToggleButton m_ctrlOpenCommPort;
CIeTimer m_ctrlTimer;
CString m_strPort;
CString m_strBaudRate;
CString m_strDataBits;
CString m_strParity;
CString m_strStopBits;
CString m_strTime;
CSlider m_ctrlTime;
CLabelControl m_ctrlRxdMessage;
CString m_strTxdMessage;
int m_intSingle;
int m_intContinuous;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSerialCommunicationDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSerialCommunicationDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClickOpenCommPort();
afx_msg void OnTimerTimer1();
afx_msg void OnScrollSliderTime();
afx_msg void OnSingle();
afx_msg void OnContinuous();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERIALCOMMUNICATIONDLG_H__676515F0_2290_11D4_B85B_0000C00677C9__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -