msg.h

来自「Visual_C++.NET精彩案例237.rar」· C头文件 代码 · 共 45 行

H
45
字号
// Msg.h: interface for the CMsg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MSG_H__INCLUDED_)
#define AFX_MSG_H__INCLUDED_

//消息类
class CMsg:public CObject
{
	DECLARE_DYNCREATE(CMsg);

public:
	//构造函数
	CMsg();

//Attributes
public:
	//字符串成员
	CString m_strText;
	//是否关闭状态
	BOOL m_bClose;
	//消息列表
	CStringList m_msgList;

//Operations
public:
	//初始化函数
	void Init();

//Implementation
public:
	//析构函数
	virtual ~CMsg();
	//序列化函数
	virtual void Serialize(CArchive& ar);

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};

#endif // !defined(AFX_MSG_H__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?