?? clientsocket.cpp
字號:
// ClientSocket.cpp: implementation of the CClientSocket class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "mfctest.h"
#include "ClientSocket.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CClientSocket::CClientSocket(CWnd * parent) : CCESocket()
{
m_Parent = parent;
}
CClientSocket::~CClientSocket()
{
}
void CClientSocket::OnReceive()
{
if(m_Parent)
::PostMessage(m_Parent->m_hWnd, SOCK_ONRECEIVE, NULL, NULL);
}
void CClientSocket::OnClose(int closeEvent)
{
if(m_Parent)
::PostMessage(m_Parent->m_hWnd, SOCK_ONCLOSE, NULL, NULL);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -