?? cmsgstation.h
字號:
//
// CMsgStation.h
//
#ifndef __H_CMsgStation__
#define __H_CMsgStation__
#include "CObjectList.h"
typedef long MessageT;
typedef long NotifyT;
class CMsgReceiver;
class CMsgStation
{
protected:
CObjectList mReceivers;
public:
CMsgStation(void);
virtual ~CMsgStation(void);
void AddMsgReceiver(CMsgReceiver * inReceiver);
void RemoveMsgReceiver(CMsgReceiver * inReceiver);
bool Broadcast(MessageT inMessage, void * ioParam = 0, void * ioParam2 = 0);
bool Notify(NotifyT inNotification, long inParam1 = 0, long inParam2 = 0);
};
const MessageT msg_StationDestroyed = 0;
const MessageT msg_Notify = 1;
struct SNotificationStruct
{
NotifyT mNotification;
CMsgStation * mStation;
long mParam1;
long mParam2;
};
#endif // __H_CMsgStation__
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -