📄 porttestdlg.h
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_PORTTESTDLG_H__09CFB6E7_FD5A_11D6_9D92_5254AB202359__INCLUDED_)
#define AFX_PORTTESTDLG_H__09CFB6E7_FD5A_11D6_9D92_5254AB202359__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "xySplitterWnd.h"
#include "TransParentButton.h"
#include "ColorStatic.h"
#include "HyperLink.h"
class CPortTestDlg : public CDialog
{
public:
CPortTestDlg(CWnd* pParent = NULL); // standard constructor
CxSplitterWnd m_Splitter ;
CySplitterWnd m_SplitterH ;
// Dialog Data
//{{AFX_DATA(CPortTestDlg)
enum { IDD = IDD_PORTTEST_DIALOG };
CHyperLink m_email;
CEdit m_SendSet;
CColorStatic m_Move;
CTransParentButton m_Send;
CTransParentButton m_Sum;
CTransParentButton m_Lpc;
CTransParentButton m_Crc16;
CTransParentButton m_Crc8;
CTransParentButton m_Clear;
CTransParentButton m_Set;
CTransParentButton m_Close;
CTransParentButton m_Open;
CMSComm m_MsComm;
int m_AsciiHex;
BOOL m_AutoSend;
int m_TimeSpace;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPortTestDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
protected:
WORD CRC_16CODE( BYTE *packet, int nLen );
BYTE CRC_8CODE( BYTE *packet );
BYTE RX( BYTE cValue );
CString m_strSendSetAscii, m_strSendTextAscii, m_strRecvTextAscii ;
CString m_strSendSetHex, m_strSendTextHex, m_strRecvTextHex ;
CString GetStrFromHex( BYTE hex );
BYTE GetHexFromStr( CString str );
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPortTestDlg)
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 void OnOpen();
afx_msg void OnClose();
afx_msg void OnOnCommMscomm();
afx_msg void OnClear();
afx_msg void OnOut();
afx_msg void OnKillfocusSendset();
afx_msg void OnAscii();
afx_msg void OnHex();
afx_msg void OnAutosend();
afx_msg void OnKillfocusTimespace();
afx_msg void OnSet();
afx_msg void OnSum();
afx_msg void OnLpc();
afx_msg void OnCrc8();
afx_msg void OnCrc16();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
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_PORTTESTDLG_H__09CFB6E7_FD5A_11D6_9D92_5254AB202359__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -