📄 msgannouncelist.h
字号:
// MsgAnnounceList.h: interface for the CMsgAnnounceList class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGANNOUNCELIST_H__17B2F84C_5064_4F0F_A15A_FA09616053A8__INCLUDED_)
#define AFX_MSGANNOUNCELIST_H__17B2F84C_5064_4F0F_A15A_FA09616053A8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Netmsg.h"
#include "Hero.h"
const int _MAX_ANNOUNCE_PER_PAGE = 20; // 每页发送20条公告标题
class CMsgAnnounceList : public CNetMsg
{
public:
CMsgAnnounceList();
virtual ~CMsgAnnounceList();
BOOL Create(char* pbufMsg, DWORD dwMsgSize);
BOOL Create(USHORT usType, int nIndex,OBJID idAnnounce=0);
void Process (void *pInfo);
protected:
typedef struct
{
unsigned short unMsgSize;
unsigned short unMsgType;
USHORT usType; //to server // 类型
union {
USHORT usAmount; // 数量
OBJID idAnnounce;
int nIndex; //to server要开始查询的索引
};
ST_ANNOUNCE_TITLE setAnnounce[1];//to client
}MSG_Info;
MSG_Info* m_pInfo;
};
#endif // !defined(AFX_MSGANNOUNCELIST_H__17B2F84C_5064_4F0F_A15A_FA09616053A8__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -