📄 mcu2pcdlg.h
字号:
// mcu2pcDlg.h : header file
//
#include "mscomm.h"
#if !defined(AFX_MCU2PCDLG_H__1B0CC8A2_522A_44EC_AA67_204B04B59E85__INCLUDED_)
#define AFX_MCU2PCDLG_H__1B0CC8A2_522A_44EC_AA67_204B04B59E85__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CMcu2pcDlg dialog
class CMcu2pcDlg : public CDialog
{
// Construction
public:
char Num2Char(unsigned char ch);
BOOL m_bStopdis;
char ConvertHexChar(char ch);
int String2Hex(CString str,CByteArray &senddata);
BOOL m_bOpenCom;
void DealWithData();
CString m_getstr;
void UpdateStatusEdit();
void UpdateComCFG();
CMcu2pcDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CMcu2pcDlg)
enum { IDD = IDD_MCU2PC_DIALOG };
CButton m_ctrlStopDis;
CStatic m_status;
CButton m_OpenCom;
CStatic m_SetIcon;
CComboBox m_check;
CComboBox m_stopbits;
CComboBox m_speed;
CComboBox m_databits;
CComboBox m_comsel;
CString m_comstatus;
CString m_strreceive;
CString m_id;
float m_money;
float m_money2;
CString m_rrr;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMcu2pcDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
HICON m_hIconRed; //串口打开时的红灯图标句柄
HICON m_hIconOff; //串口关闭时的指示图标句柄
CMSComm m_Port;
CString strBaud; //波特率
int m_nCom; //串口号
CString strCheck; //校验
CString strDatabits; //数据位
CString strStopbits; //停止位
CString strSettings; //COM的设置
CString strCom;//COM号的字符串形式
BYTE rxdata[2048];// 设置BYTE数组
// Generated message map functions
//{{AFX_MSG(CMcu2pcDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnSelendokComboComsel();
afx_msg void OnSelendokComboCheck();
afx_msg void OnSelendokComboDatabits();
afx_msg void OnSelendokComboSpeed();
afx_msg void OnSelendokComboStopbits();
afx_msg void OnCommMscomm();
afx_msg void OnOpencom();
afx_msg void OnBtnClrRec();
afx_msg void OnBtnStopdis();
afx_msg void OnBtnClrSnd();
afx_msg void OnRd();
afx_msg void OnWr();
afx_msg void OnAdd();
afx_msg void OnDec();
afx_msg void OnChangeAddDec();
afx_msg void OnChangeId();
afx_msg void OnChangeEdit1();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// CMcu2pcdlg dialog
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MCU2PCDLG_H__1B0CC8A2_522A_44EC_AA67_204B04B59E85__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -