1234567891011121314151617181920212223242526 |
- #include "stdafx.h"
- #include "ClientSocket.h"
- #include "ChatRoomClientDlg.h"
- CClientSocket::CClientSocket()
- {
- }
- CClientSocket::~CClientSocket()
- {
- }
- void CClientSocket::SetDialog(CChatRoomClientDlg* pDialog)
- {
- m_pDlg = pDialog;
- }
- void CClientSocket::OnReceive(int nErrorCode)
- {
- CSocket::OnReceive(nErrorCode);
- if (m_pDlg)
- {
- m_pDlg->ReceiveText();
- }
- }
|