📄 communicate.cpp
字号:
// Communicate.cpp: implementation of the CCommunicate class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "vt100.h"
#include "Communicate.h"
#include "cfgfile.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
CLogFile csLog;
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CCommunicate::CCommunicate()
{
m_hStopEvent=NULL;
m_pOwnerWnd=NULL;
m_blIsRcvThreadActive=FALSE;
m_blIsSndThreadActive=FALSE;
}
CCommunicate::~CCommunicate()
{
}
int CCommunicate::SetMsgWnd(HWND hWnd)
{
m_pOwnerWnd=hWnd;
return 0;
}
int CCommunicate::GetData(char *pszBuf, DWORD *piLen)
{
memcpy(pszBuf,m_szDataBuf+m_dwOffset,m_dwLen-m_dwOffset);
*piLen=m_dwLen-m_dwOffset;
m_dwLen=0;
m_dwOffset=0;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -