📄 mesg.cpp
字号:
// Mesg.cpp: implementation of the CMesg class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "chatserver.h"
#include "Mesg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMesg::CMesg()
{
}
CMesg::~CMesg()
{
}
void CMesg::Serialize(CArchive &ar)
{
if(ar.IsStoring()) //send message
{
ar<<type;
ar<<from;
ar<<to;
ar<<m_str;
}
else
{
ar>>type;
ar>>from;
ar>>to;
ar>>m_str;
}
}
void CMesg::init()
{
type=0;
from=to=m_str=_T("");
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -