📄 commdlg.h
字号:
// commDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
//#include "serial.h"
//}}AFX_INCLUDES
#if !defined(AFX_COMMDLG_H__845EE026_FBE1_11D3_B3A6_00C00CB075D5__INCLUDED_)
#define AFX_COMMDLG_H__845EE026_FBE1_11D3_B3A6_00C00CB075D5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#if ! defined( CARRIAGE_RETURN )
#define CARRIAGE_RETURN 0x0D
#endif
#if ! defined( LINE_FEED )
#define LINE_FEED 0x0A
#endif
/////////////////////////////////////////////////////////////////////////////
// CCommDlg dialog
class CCommDlg : public CDialog
{
// Construction
public:
//CSerial comm2;
CCommDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CCommDlg)
enum { IDD = IDD_COMM_DIALOG };
CButton m_timesend;
CButton m_stop;
CButton m_hexsend;
CComboBox m_speed;
CButton m_hex;
CComboBox m_com;
CMSComm m_Comm;
CString m_SendData;
CString m_ReceiveData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCommDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCommDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnComm();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnComselect();
afx_msg void OnComspeed();
afx_msg void OnStoprecv();
afx_msg void OnTimesend();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void Onchengshixueyuan();
afx_msg void OnBUTTONshudi();
afx_msg void OnBUTTON1pinhu();
afx_msg void OnBUTTONduanqiao();
afx_msg void OnBUTTONyunxi();
afx_msg void OnBUTTONmanlong();
afx_msg void OnBUTTONhupao();
afx_msg void OnBUTTONlongjin();
afx_msg void OnBUTTONjixi();
afx_msg void OnBUTTONwusan();
afx_msg void OnBUTTONyuquan();
afx_msg void OnBUTTONzijingang();
afx_msg void OnChecksum();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL stop;
BOOL timesend;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMMDLG_H__845EE026_FBE1_11D3_B3A6_00C00CB075D5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -