ts.cpp

来自「字体开发软件设计,大家多多学习」· C++ 代码 · 共 79 行

CPP
79
字号
// Ts.cpp : implementation file
//

#include "stdafx.h"
#include "sok.h"
#include "Ts.h"
#include "sokDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CTs

CTs::CTs()
{
}

CTs::~CTs()
{
}


// Do not edit the following lines, which are needed by ClassWizard.
#if 0
BEGIN_MESSAGE_MAP(CTs, CAsyncSocket)
	//{{AFX_MSG_MAP(CTs)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()
#endif	// 0

/////////////////////////////////////////////////////////////////////////////
// CTs member functions
void CTs::OnAccept(int nErrorCode)
{
	if(nErrorCode==0)
	{
		((CSokDlg  *)m_pwnd)->OnAccept();
	}
}

void CTs::SetParent(CDialog *pwnd)
{
	m_pwnd=pwnd;
}
void CTs::OnConnect(int nErrorCode)
{
	if(nErrorCode==0)
	{
		
	}
}
void CTs::OnClose(int nErrorCode)
{
	if(nErrorCode==0)
	{
		
	}

}
void CTs::OnSend(int nErrorCode)
{
	if(nErrorCode==0)
	{
		((CSokDlg  *)m_pwnd)->OnSend();
	}
}

void CTs::OnReceive(int nErrorCode)
{
	if(nErrorCode==0)
	{
		((CSokDlg  *)m_pwnd)->OnReceive();
	}

}

⌨️ 快捷键说明

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