msg.h

来自「一个简易的聊天室程序」· C头文件 代码 · 共 58 行

H
58
字号
// msg.h : interface of the CMsg class
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.

class CMsg : public CObject
{
protected:
	DECLARE_DYNCREATE(CMsg)
public:
	CMsg();

// Attributes
public:
	CString m_strText;
	BOOL m_bClose;
	CStringList m_msgList;

	CStringList m_chattersList;
	CPtrList    m_chattersListPtr;

	SOCKET      m_hSocket;

	UINT code;

	DWORD    m_dwMask;
	DWORD    m_dwEffects;
	LONG     m_yHeight;
	LONG     m_yOffset;
	COLORREF m_crTextColor;
	BYTE     m_bCharSet;
	BYTE     m_bPitchAndFamily;
	CString  m_szFaceName;

	
// Operations
public:
	void Init();

// Implementation
public:
	virtual ~CMsg();
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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