www.pudn.com > chat-dialog.rar > SocketMsg.h
// SocketMsg.h: interface for the CSocketMsg class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SOCKETMSG_H__2CBCF8AB_9A47_440F_B227_9751189E1832__INCLUDED_)
#define AFX_SOCKETMSG_H__2CBCF8AB_9A47_440F_B227_9751189E1832__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define SM_SENDMESSAGE 121
#define SM_CONNECTSEVER 122
#define SM_CLOSECLIENT 120
#define SM_ALLARM 123
class CSocketMsg
{
public:
CSocketMsg();
virtual ~CSocketMsg();
public:
// BOOL IsNewClient;
// BOOL IsQuit;
UINT SystemMsg;
CString ClientID;
CString Time;
CString SendMsg;
public:
void FormatSocketMsg(CString);
CString FormatMsg();
};
#endif // !defined(AFX_SOCKETMSG_H__2CBCF8AB_9A47_440F_B227_9751189E1832__INCLUDED_)