soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SHostMgr Class Reference

管理宿主窗口消息处理的单例类 More...

#include <SHostMgr.h>

Inheritance diagram for SHostMgr:
SSingleton2< SHostMgr >

Public Member Functions

 SHostMgr (void)
 构造函数
 
 ~SHostMgr (void)
 析构函数
 
void DispatchMessage (UINT uMsg, WPARAM wp=0, LPARAM lp=0)
 分发消息到宿主窗口
 
- Public Member Functions inherited from SSingleton2< SHostMgr >
 SSingleton2 (void)
 Constructor for SSingleton2.
 
virtual ~SSingleton2 (void)
 Destructor for SSingleton2.
 

Protected Member Functions

bool AddHostMsgHandler (HWND hHost)
 添加宿主窗口消息处理程序
 
bool RemoveHostMsgHandler (HWND hHost)
 移除宿主窗口消息处理程序
 

Protected Attributes

SMap< HWND, bool > m_mapHostMsgHandler
 宿主窗口消息处理程序映射表
 
SCriticalSection m_cs
 临界区对象,用于线程同步
 

Friends

class SHostWnd
 

Additional Inherited Members

- Static Public Member Functions inherited from SSingleton2< SHostMgr >
static SHostMgrgetSingleton (void)
 Gets the singleton instance.
 
static SHostMgrgetSingletonPtr (void)
 Gets the pointer to the singleton instance.
 

Detailed Description

管理宿主窗口消息处理的单例类

Definition at line 12 of file SHostMgr.h.

Constructor & Destructor Documentation

◆ SHostMgr()

SNSBEGIN SHostMgr::SHostMgr ( void )

构造函数

Definition at line 5 of file SHostMgr.cpp.

◆ ~SHostMgr()

SHostMgr::~SHostMgr ( void )

析构函数

Definition at line 9 of file SHostMgr.cpp.

Member Function Documentation

◆ AddHostMsgHandler()

bool SHostMgr::AddHostMsgHandler ( HWND hHost)
protected

添加宿主窗口消息处理程序

Parameters
hHost宿主窗口句柄
Returns
成功返回TRUE,失败返回FALSE

Definition at line 13 of file SHostMgr.cpp.

◆ DispatchMessage()

void SHostMgr::DispatchMessage ( UINT uMsg,
WPARAM wp = 0,
LPARAM lp = 0 )

分发消息到宿主窗口

Parameters
uMsg消息ID
wp附加参数1
lp附加参数2

Definition at line 28 of file SHostMgr.cpp.

◆ RemoveHostMsgHandler()

bool SHostMgr::RemoveHostMsgHandler ( HWND hHost)
protected

移除宿主窗口消息处理程序

Parameters
hHost宿主窗口句柄
Returns
成功返回TRUE,失败返回FALSE

Definition at line 22 of file SHostMgr.cpp.

Friends And Related Symbol Documentation

◆ SHostWnd

friend class SHostWnd
friend

Definition at line 14 of file SHostMgr.h.

Member Data Documentation

◆ m_cs

SCriticalSection SHostMgr::m_cs
protected

临界区对象,用于线程同步

Definition at line 52 of file SHostMgr.h.

◆ m_mapHostMsgHandler

SMap<HWND, bool> SHostMgr::m_mapHostMsgHandler
protected

宿主窗口消息处理程序映射表

Definition at line 51 of file SHostMgr.h.


The documentation for this class was generated from the following files: