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