📄 msg.cpp
字号:
// Msg.cpp: implementation of the CMsg class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Ts.h"
#include "Msg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMsg::CMsg()
{
m_strText.msg=_T("");
m_bClose=FALSE;
}
CMsg::~CMsg()
{
}
void CMsg::Serialize(CArchive& ar)
{
if(ar.IsStoring())
{
ar<<(WORD)m_bClose;
ar<<m_strText.m_ID;
ar<<m_strText.s_ID;
ar<<m_strText.msg;
}
else
{
WORD wd;
ar>>wd;
m_bClose=(BOOL)wd;
ar>>m_strText.m_ID;
ar>>m_strText.s_ID;
ar>>m_strText.msg;
}
}
IMPLEMENT_DYNAMIC(CMsg,CObject)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -