📄 scomdlg.h
字号:
// SComDlg.h : header file
//
#if !defined(AFX_SCOMDLG_H__C94D567E_610B_4231_BDB0_CECEE3C3848D__INCLUDED_)
#define AFX_SCOMDLG_H__C94D567E_610B_4231_BDB0_CECEE3C3848D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "SerialPort.h"
/////////////////////////////////////////////////////////////////////////////
// CSComDlg dialog
class CSComDlg : public CDialog
{
// Construction
public:
CSComDlg(CWnd* pParent = NULL); // standard constructor
int m_nBaud; //波特率
int m_nCom; //串口号
CSerialPort m_Port; //CSerialPort类对象// Dialog Data
CFile fp;
BOOL m_bFile;
BOOL m_bSendFile;
BOOL m_bTxContinue;
LONG m_gTxCount;
LONG m_gTxLength;
// Dialog Data
//{{AFX_DATA(CSComDlg)
enum { IDD = IDD_SCOM_DIALOG };
CButton m_ctrlHexReceive;
CEdit m_ctrlReceiveData;
CStatic m_strStatus;
CComboBoxEx m_Speed;
CComboBoxEx m_Com;
CButton m_ctrlSendFile;
CButton m_ctrlOpenPort;
CString m_TxCount;
CString m_TxLength;
CString m_strSendFilePathName;
BOOL m_bDTR;
BOOL m_bRTS;
CString m_ReceiveData;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSComDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
BOOL m_bOpenPort;
// Generated message map functions
//{{AFX_MSG(CSComDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg LONG OnComm(WPARAM ch,LPARAM port);
afx_msg void OnButtonOpenfile();
afx_msg void OnButtonOpenport();
afx_msg void OnButtonSendfile();
afx_msg void OnSelendokComboComport();
afx_msg void OnDestroy();
afx_msg void OnSelendokComboSpeed();
afx_msg void OnButtonClearrx();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SCOMDLG_H__C94D567E_610B_4231_BDB0_CECEE3C3848D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -