⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cmsgstation.h

📁 采用DirecShow通过网络传输实现远程视频动态播放,
💻 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 + -