📄 msgfriend.h
字号:
// MsgFriend.h: interface for the CMsgGoodFriend class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_MSGFRIEND_H__DC85CF8B_3B54_4C8D_94EA_F68172C0A179__INCLUDED_)
#define AFX_MSGFRIEND_H__DC85CF8B_3B54_4C8D_94EA_F68172C0A179__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// include head file(s) hrere...
#include "NetMsg.h"
// define constant(s) here...
const int _FRIEND_APPLY = 10;
const int _FRIEND_ACCEPT = 11;
const int _FRIEND_ONLINE = 12;
const int _FRIEND_OFFLINE = 13;
const int _FRIEND_BREAK = 14;
const int _FRIEND_GETINFO = 15;
// enemy ...
const int _ENEMY_ONLINE = 16;
const int _ENEMY_OFFLINE = 17;
const int _ENEMY_DEL = 18;
const int _ENEMY_ADD = 19;
class CMsgFriend : public CNetMsg
{
public:
CMsgFriend();
virtual ~CMsgFriend();
BOOL Create (int nAction, OBJID idFriend, BOOL bOnline, const char* pszName);
public:
BOOL Create (char* pMsgBuf, DWORD dwSize);
void Process (void* pInfo);
private:
typedef struct
{
unsigned short unMsgSize;
unsigned short unMsgType;
OBJID idFriend;
DWORD dwLookFace;
unsigned char ucAction;
unsigned char ucOnlineFlag;
unsigned char ucLevel;
union {
char szName[_MAX_NAMESIZE];
OBJID idData;
};
}MSG_Info;
MSG_Info* m_pInfo;
};
#endif // !defined(AFX_MSGFRIEND_H__DC85CF8B_3B54_4C8D_94EA_F68172C0A179__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -