⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 communicate.cpp

📁 vt100终端仿真程序
💻 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 + -