📄 chuankoutestdlg.h
字号:
// ChuankouTestDlg.h : header file
#include "SerialPort.h"
//
#if !defined(AFX_CHUANKOUTESTDLG_H__428E066D_C327_4C33_BCC1_F07B29E5959D__INCLUDED_)
#define AFX_CHUANKOUTESTDLG_H__428E066D_C327_4C33_BCC1_F07B29E5959D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CChuankouTestDlg dialog
class CChuankouTestDlg : public CDialog
{
// Construction
public:
void OnTimer();
LONG OnFileSendingEnded();
LONG OnCommunication();
CChuankouTestDlg(CWnd* pParent = NULL); // standard constructor
CSerialPort m_Port;
BOOL m_bSendFile;
BOOL m_bOpenPort;
long m_nFileLength;
int m_nCom;
// Dialog Data
//{{AFX_DATA(CChuankouTestDlg)
enum { IDD = IDD_CHUANKOUTEST_DIALOG };
CStatic m_ctrlTxcount;
CEdit m_ctrlEditSendMsg;
CComboBox m_Com;
CButton m_ctrlClose;
CButton m_ctrlOpenPort;
CButton m_ctrlManualSend;
CButton m_ctrlSendFile;
CEdit m_ctrlEditSendFilePath;
CEdit m_ctrlEditReceiveMsg;
CEdit m_ctrlEditFileSavePath;
CStatic m_ctrlRxcount;
CStatic m_ctrlPortStatus;
CString m_strFileSavePath;
CString m_strReceiveMsg;
CString m_strSendFilePath;
CString m_strSendMsg;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChuankouTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CChuankouTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg LONG OnCommunication(WPARAM ch,LPARAM port);
afx_msg void OnEditchangeComboPortselect();
afx_msg LONG OnFileSendingEnded(WPARAM wPARAM,LPARAM port);
afx_msg void OnButtonOpenport();
afx_msg void OnButtonCloseport();
afx_msg void OnButtonClear();
afx_msg void OnButtonSend();
afx_msg void OnButtonFileselect();
afx_msg void OnButtonSendfile();
afx_msg void OnButtonDirfilebrower();
afx_msg void OnButtonFilesave();
afx_msg void OnButtonClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHUANKOUTESTDLG_H__428E066D_C327_4C33_BCC1_F07B29E5959D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -