📄 commwizarddlg.h
字号:
// CommWizardDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_COMMWIZARDDLG_H__3F75A246_3168_4873_8BF6_7C06168BD110__INCLUDED_)
#define AFX_COMMWIZARDDLG_H__3F75A246_3168_4873_8BF6_7C06168BD110__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCommWizardDlg dialog
class CCommWizardDlg : public CDialog
{
// Construction
public:
BOOL bSend; //控制“自动发送”按钮的显示和响应
bool bRecieve; //控制“开始接收”按钮的显示和响应
int m_nInputMode; //传输模式:ASCII模式还是二进制模式
int m_nPort; //端口号
CString m_strSettings; //串口设置
CString m_strSendString; //欲发送的字符串
int m_nTime; //自动发送的时间间隔
void open();
int String2Hex(CString str,CByteArray &senddata);
char ConvertHexChar(char ch);
CCommWizardDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCommWizardDlg)
enum { IDD = IDD_COMMWIZARD_DIALOG };
CComboBox m_ctrlDataType;
CButton m_ctrlSend;
CButton m_ctrlRecieve;
CMSComm m_Com;
CString m_strRecieve;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCommWizardDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCommWizardDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSend();
afx_msg void OnRecieve();
afx_msg void OnSettings();
afx_msg void OnClear();
afx_msg void OnManualsend();
afx_msg void OnOnCommCommctrl();
afx_msg void OnSelchangeType();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnFileSave();
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_COMMWIZARDDLG_H__3F75A246_3168_4873_8BF6_7C06168BD110__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -