📄 testdlg.h
字号:
// TestDlg.h : header file
//
#if !defined(AFX_TESTDLG_H__71EDDC6B_FA26_4787_A8DF_B673CE5B3BD8__INCLUDED_)
#define AFX_TESTDLG_H__71EDDC6B_FA26_4787_A8DF_B673CE5B3BD8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_READ_ERROR WM_USER+10
#define WM_ABORT WM_USER+11
#define WM_RECEIVED WM_USER+12
#define WM_WRITE_COMPLETE WM_USER+13
#define WM_WRITE_ERROR WM_USER+14
typedef struct tagREADPARAM
{
HWND hWnd;
DWORD dwLength;
BYTE * pDataRead;
}READPARAM;
typedef struct tagWRITEPARAM
{
HWND hWnd;
DWORD dwLength;
BYTE * pbyData;
}WRITEPARAM;
/////////////////////////////////////////////////////////////////////////////
// CTestDlg dialog
class CTestDlg : public CDialog
{
// Construction
public:
CTestDlg(CWnd* pParent = NULL); // standard constructor
HANDLE hReadThread;
BYTE *m_pDataRead;
// Dialog Data
//{{AFX_DATA(CTestDlg)
enum { IDD = IDD_TEST_DIALOG };
CListBox m_ctlWrite;
CListBox m_ctlRead;
CComboBox m_ctlType;
CString m_strWrite;
DWORD m_dwBaud;
DWORD m_dwBytes;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTestDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnOpen();
afx_msg void OnClose();
afx_msg void OnRead();
afx_msg void OnWrite();
afx_msg void OnAbort();
//}}AFX_MSG
afx_msg void OnReadError(WPARAM,LPARAM);
afx_msg void OnUserAbort(WPARAM,LPARAM);
afx_msg void OnReceived(WPARAM,LPARAM);
afx_msg void OnWriteComplete();
afx_msg void OnWriteError();
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTDLG_H__71EDDC6B_FA26_4787_A8DF_B673CE5B3BD8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -