You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
559 B
27 lines
559 B
3 months ago
|
#pragma once
|
||
|
#include <interface/SHostMsgHandler-i.h>
|
||
|
#include <core/SSingleton2.h>
|
||
|
|
||
|
namespace SOUI
|
||
|
{
|
||
|
class SOUI_EXP SHostMgr: public SSingleton2<SHostMgr>
|
||
|
{
|
||
|
SINGLETON2_TYPE(SINGLETON_HOSTMGR)
|
||
|
friend class SHostWnd;
|
||
|
public:
|
||
|
SHostMgr(void);
|
||
|
~SHostMgr(void);
|
||
|
|
||
|
void DispatchMessage(bool bRelayout,UINT uMsg, WPARAM wp=0,LPARAM lp=0);
|
||
|
|
||
|
protected:
|
||
|
bool AddHostMsgHandler(IHostMsgHandler * pHost);
|
||
|
|
||
|
bool RemoveHostMsgHandler(IHostMsgHandler *pHost);
|
||
|
|
||
|
protected:
|
||
|
SMap<IHostMsgHandler*,bool> m_mapHostMsgHandler;
|
||
|
SCriticalSection m_cs;
|
||
|
};
|
||
|
}
|