📄 comtest.h
字号:
#pragma once
// CComTest
class CComTest : public CWinThread
{
DECLARE_DYNCREATE(CComTest)
protected:
CComTest(); // protected constructor used by dynamic creation
virtual ~CComTest();
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
protected:
DECLARE_MESSAGE_MAP()
public:
//ostrstream osRead;
CDialog * m_pwnd;
HANDLE COMFile;
BOOL bCONNECTED;
OVERLAPPED osRead;
public:
void SetParentWnd(CDialog * pwnd);
BOOL OpenConnection(CString strPort,UINT nBaudRate);
BOOL CloseConnection();
int ReadCommBlock(LPSTR lpszBlock);
int WriteTTYBlock(CString strWrite,int bufLen);
public:
virtual int Run();
virtual BOOL OnIdle(LONG lCount);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -