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

📄 comthrd.cpp

📁 gps对时
💻 CPP
字号:
// ComThrd.cpp : implementation file
//

#include "stdafx.h"
#include "RegionComm.h"
#include "ComThrd.h"
#include "Communication.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CComThrd

IMPLEMENT_DYNCREATE(CComThrd, CWinThread)

CComThrd::CComThrd()
{
	m_pOwner=NULL;
}

CComThrd::~CComThrd()
{
}

BOOL CComThrd::InitInstance()
{	
	return TRUE;
}

int CComThrd::ExitInstance()
{
	return CWinThread::ExitInstance();
}

BEGIN_MESSAGE_MAP(CComThrd, CWinThread)
	//{{AFX_MSG_MAP(CComThrd)
		// NOTE - the ClassWizard will add and remove mapping macros here.
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CComThrd message handlers

int CComThrd::Run() 
{
    if(m_pOwner==NULL)
		return(0);
    m_pOwner->TryToReadAllComm();
	return(1);
}

void CComThrd::SetOwner(CCommunication* pOwner)
{
	m_pOwner = pOwner;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -