📄 ts.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -