📄 myserialdlg.h
字号:
// MyserialDlg.h : header file
//
#if !defined(AFX_MYSERIALDLG_H__027E14BC_88D6_45C5_90C9_081F0C4C5B79__INCLUDED_)
#define AFX_MYSERIALDLG_H__027E14BC_88D6_45C5_90C9_081F0C4C5B79__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
/////////////////////////////////////////////////////////////////////////////
// CMyserialDlg dialog
class CMyserialDlg : public CDialog
{
// Construction
public:
BOOL ClosePort();
HANDLE m_hSerial;
HANDLE m_ExitThreadEvent;
CString m_strRecDisp;
CMyserialDlg(CWnd* pParent = NULL); // standard constructor
static DWORD CommRecvTread(LPVOID lparam);
typedef void (CALLBACK *ONCOMMRECV)(CWnd* pWnd, char *buf, int buflen);
static void CALLBACK OnCommRecv(CWnd* pWnd, char *buf, int buflen);
// Dialog Data
//{{AFX_DATA(CMyserialDlg)
enum { IDD = IDD_MYSERIAL_DIALOG };
CString m_strSendEdit;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyserialDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyserialDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButton1();
afx_msg void OnWrite();
afx_msg void OnOpen();
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYSERIALDLG_H__027E14BC_88D6_45C5_90C9_081F0C4C5B79__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -