soui 5.0.0.1
 
Loading...
Searching...
No Matches
THostWndProxy< T > Class Template Reference
Inheritance diagram for THostWndProxy< T >:
SHostWnd TNativeWndProxy< IHostWnd > SwndContainerImpl IHostWnd SNativeWnd ISwndContainer ITimelineHandler INativeWnd TObjRefImpl< INativeWnd > ITimelineHandlersMgr IObjRef INativeWnd IObjRef

Public Member Functions

 THostWndProxy (LPCWSTR pszResId)
 
 THostWndProxy (LPCSTR pszResId)
 
long AddRef ()
 
long Release ()
 
void OnFinalRelease ()
 
int GetID () SCONST
 
void SetID (int nID)
 
HWND CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID, LPVOID lpParam) OVERRIDE
 
HWND GetHwnd () OVERRIDE
 
BOOL SubclassWindow (HWND hWnd) OVERRIDE
 
HWND UnsubclassWindow (BOOL bForce=FALSE) OVERRIDE
 
const MSG * GetCurrentMessage () SCONST OVERRIDE
 
int GetDlgCtrlID () SCONST OVERRIDE
 
DWORD GetStyle () SCONST OVERRIDE
 
DWORD GetExStyle () SCONST OVERRIDE
 
LONG_PTR GetWindowLongPtr (int nIndex) SCONST OVERRIDE
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) OVERRIDE
 
HWND GetParent () OVERRIDE
 
HWND SetParent (HWND hWndNewParent) OVERRIDE
 
BOOL IsWindowEnabled () SCONST OVERRIDE
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) OVERRIDE
 
BOOL CenterWindow (HWND hWndCenter=NULL) OVERRIDE
 
BOOL DestroyWindow () OVERRIDE
 
BOOL IsWindow () SCONST OVERRIDE
 
BOOL Invalidate (BOOL bErase=TRUE) OVERRIDE
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase=TRUE) OVERRIDE
 
BOOL GetWindowRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL GetClientRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ClientToScreen (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ClientToScreen2 (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ScreenToClient (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ScreenToClient2 (LPRECT lpRect) SCONST OVERRIDE
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST OVERRIDE
 
int MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST OVERRIDE
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL) OVERRIDE
 
BOOL KillTimer (UINT_PTR nIDEvent) OVERRIDE
 
HDC GetDC () OVERRIDE
 
HDC GetWindowDC () OVERRIDE
 
int ReleaseDC (HDC hDC) OVERRIDE
 
BOOL CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) OVERRIDE
 
BOOL HideCaret () OVERRIDE
 
BOOL ShowCaret () OVERRIDE
 
HWND SetCapture () OVERRIDE
 
HWND GetCapture () OVERRIDE
 
BOOL ReleaseCapture () OVERRIDE
 
HWND SetFocus () OVERRIDE
 
LRESULT SendMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL PostMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL SetWindowText (LPCTSTR lpszString) OVERRIDE
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST OVERRIDE
 
BOOL IsIconic () SCONST OVERRIDE
 
BOOL IsZoomed () SCONST OVERRIDE
 
BOOL IsWindowVisible () SCONST OVERRIDE
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE) OVERRIDE
 
BOOL MoveWindow2 (LPCRECT lpRect, BOOL bRepaint=TRUE) OVERRIDE
 
BOOL ShowWindow (int nCmdShow) OVERRIDE
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw=TRUE) OVERRIDE
 
BOOL SetLayeredWindowAttributes (COLORREF crKey, BYTE byAlpha, DWORD dwFlags) OVERRIDE
 
BOOL UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags)
 
void SetMsgHandler (FunMsgHandler fun, void *ctx) OVERRIDE
 
MsgHandlerInfoGetMsgHandler () OVERRIDE
 
HWND CreateEx (HWND hWndParent, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, IXmlNode *xmlInit DEF_VAL(NULL))
 
HWND Create (HWND hWndParent, int x=0, int y=0, int nWidth=0, int nHeight=0)
 
BOOL InitFromXml (IXmlNode *pNode) OVERRIDE
 
void SetLayoutId (LPCTSTR pszLayoutId) OVERRIDE
 
IWindowGetIRoot () OVERRIDE
 
BOOL IsTranslucent () SCONST OVERRIDE
 
IHostPresenterGetPresenter () OVERRIDE
 
void SetPresenter (IHostPresenter *pPresenter) OVERRIDE
 
IMessageLoopGetMsgLoop () OVERRIDE
 
IWindowFindIChildByID (int nId) OVERRIDE
 
IWindowFindIChildByName (LPCWSTR pszName) OVERRIDE
 
IWindowFindIChildByNameA (LPCSTR pszName) OVERRIDE
 
INcPainterGetNcPainter () OVERRIDE
 
void SetEventHandler (FunCallback fun, void *ctx) OVERRIDE
 
EventHandlerInfoGetEventHandler () OVERRIDE
 
BOOL AnimateHostWindow (DWORD dwTime, DWORD dwFlags) OVERRIDE
 
void EnableDragDrop () OVERRIDE
 
void ShowHostWnd (int uShowCmd, BOOL bWaitAniDone) OVERRIDE
 
void EnablePrivateUiDef (BOOL bEnable) OVERRIDE
 
void SetScale (int nScale, LPCRECT pDestRect)
 
- Public Member Functions inherited from SHostWnd
 SHostWnd (LPCWSTR pszResName=NULL)
 
 SHostWnd (LPCSTR pszResName)
 
BOOL InitFromXml (IXmlNode *pNode) OVERRIDE
 
BOOL DestroyWindow () OVERRIDE
 
void SetLayoutId (LPCTSTR pszLayoutId) OVERRIDE
 
IWindowGetIRoot () OVERRIDE
 
BOOL IsTranslucent () SCONST OVERRIDE
 
IHostPresenterGetPresenter () OVERRIDE
 
void SetPresenter (IHostPresenter *pPresenter) OVERRIDE
 
IMessageLoopGetMsgLoop () OVERRIDE
 
IWindowFindIChildByID (int nId) OVERRIDE
 
IWindowFindIChildByName (LPCWSTR pszName) OVERRIDE
 
IWindowFindIChildByNameA (LPCSTR pszName) OVERRIDE
 
INcPainterGetNcPainter () OVERRIDE
 
BOOL ShowWindow (int nCmdShow) OVERRIDE
 
HWND CreateEx (HWND hWndParent, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, IXmlNode *xmlInit DEF_VAL(NULL)) OVERRIDE
 
HWND Create (HWND hWndParent, int x=0, int y=0, int nWidth=0, int nHeight=0) OVERRIDE
 
void SetEventHandler (FunCallback fun, void *ctx) OVERRIDE
 
EventHandlerInfoGetEventHandler () OVERRIDE
 
BOOL AnimateHostWindow (DWORD dwTime, DWORD dwFlags) OVERRIDE
 
void EnableDragDrop () OVERRIDE
 
void ShowHostWnd (int uShowCmd, BOOL bWaitAniDone) OVERRIDE
 
void EnablePrivateUiDef (BOOL bEnable) OVERRIDE
 
void SetScale (int nScale, LPCRECT pDestRect) OVERRIDE
 
SWindowFindChildByName (LPCWSTR strName, int nDeep=-1)
 
SWindowFindChildByName (LPCSTR strName, int nDeep=-1)
 
template<class T>
T * FindChildByName2 (LPCWSTR pszName, int nDeep=-1)
 
template<class T>
T * FindChildByName2 (LPCSTR pszName, int nDeep=-1)
 
SWindowFindChildByID (int nID, int nDeep=-1)
 
template<class T>
T * FindChildByID2 (int nID, int nDeep=-1)
 
template<class T>
T * FindChildByClass (int nDeep=-1) const
 
SWindowGetRoot () const
 
SNativeWndGetNative ()
 
CRect GetWindowRect () const
 
CRect GetClientRect () const
 
SHostWndAttrGetHostAttr ()
 
IToolTipGetToolTip () const
 
bool StartHostAnimation (IAnimation *pAni)
 
bool StopHostAnimation ()
 
void UpdateAutoSizeCount (bool bInc)
 
BOOL OnFireEvent (IEvtArgs *evt) OVERRIDE
 
void GetContainerRect (RECT *ret) const OVERRIDE
 
HWND GetHostHwnd () OVERRIDE
 
LPCWSTR GetTranslatorContext () const OVERRIDE
 
void UpdateRegion (IRegionS *rgn) OVERRIDE
 
void OnRedraw (LPCRECT rc, BOOL bClip) OVERRIDE
 
BOOL OnReleaseSwndCapture () OVERRIDE
 
SWND OnSetSwndCapture (SWND swnd) OVERRIDE
 
BOOL IsSendWheel2Hover () const OVERRIDE
 
BOOL UpdateWindow (BOOL bForce DEF_VAL(TRUE)) OVERRIDE
 
void UpdateTooltip () OVERRIDE
 
void SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) OVERRIDE
 
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 
void EnableHostPrivateUiDef (BOOL bEnable) OVERRIDE
 
IScriptModuleGetScriptModule () OVERRIDE
 
int GetScale () const OVERRIDE
 
void EnableIME (BOOL bEnable) OVERRIDE
 
void OnUpdateCursor () OVERRIDE
 
BOOL PostTask (IRunnable *runable, BOOL bAsync DEF_VAL(TRUE)) OVERRIDE
 
int RemoveTasksForObject (void *pObj) OVERRIDE
 
virtual BOOL onRootResize (IEvtArgs *e)
 
virtual BOOL _HandleEvent (IEvtArgs *pEvt)
 
- Public Member Functions inherited from TNativeWndProxy< IHostWnd >
long AddRef ()
 
long Release ()
 
void OnFinalRelease ()
 
int GetID () SCONST
 
void SetID (int nID)
 
HWND CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID, LPVOID lpParam) OVERRIDE
 
HWND GetHwnd () OVERRIDE
 
BOOL SubclassWindow (HWND hWnd) OVERRIDE
 
HWND UnsubclassWindow (BOOL bForce) OVERRIDE
 
const MSG * GetCurrentMessage () SCONST OVERRIDE
 
int GetDlgCtrlID () SCONST OVERRIDE
 
DWORD GetStyle () SCONST OVERRIDE
 
DWORD GetExStyle () SCONST OVERRIDE
 
LONG_PTR GetWindowLongPtr (int nIndex) SCONST OVERRIDE
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) OVERRIDE
 
HWND GetParent () OVERRIDE
 
HWND SetParent (HWND hWndNewParent) OVERRIDE
 
BOOL IsWindowEnabled () SCONST OVERRIDE
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags=0) OVERRIDE
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) OVERRIDE
 
BOOL CenterWindow (HWND hWndCenter DEF_VAL(0)) OVERRIDE
 
BOOL IsWindow () SCONST OVERRIDE
 
BOOL Invalidate (BOOL bErase=TRUE) OVERRIDE
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase=TRUE) OVERRIDE
 
BOOL GetWindowRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL GetClientRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ClientToScreen (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ClientToScreen2 (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ScreenToClient (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ScreenToClient2 (LPRECT lpRect) SCONST OVERRIDE
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST OVERRIDE
 
int MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST OVERRIDE
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)=NULL) OVERRIDE
 
BOOL KillTimer (UINT_PTR nIDEvent) OVERRIDE
 
HDC GetDC () OVERRIDE
 
HDC GetWindowDC () OVERRIDE
 
int ReleaseDC (HDC hDC) OVERRIDE
 
BOOL CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) OVERRIDE
 
BOOL HideCaret () OVERRIDE
 
BOOL ShowCaret () OVERRIDE
 
HWND SetCapture () OVERRIDE
 
HWND GetCapture () OVERRIDE
 
BOOL ReleaseCapture () OVERRIDE
 
HWND SetFocus () OVERRIDE
 
LRESULT SendMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL PostMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam=0, LPARAM lParam=0) OVERRIDE
 
BOOL SetWindowText (LPCTSTR lpszString) OVERRIDE
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST OVERRIDE
 
BOOL IsIconic () SCONST OVERRIDE
 
BOOL IsZoomed () SCONST OVERRIDE
 
BOOL IsWindowVisible () SCONST OVERRIDE
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE) OVERRIDE
 
BOOL MoveWindow2 (LPCRECT lpRect, BOOL bRepaint=TRUE) OVERRIDE
 
BOOL ShowWindow (int nCmdShow) OVERRIDE
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw=TRUE) OVERRIDE
 
BOOL SetLayeredWindowAttributes (COLORREF crKey, BYTE byAlpha, DWORD dwFlags) OVERRIDE
 
BOOL UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags)
 
void SetMsgHandler (FunMsgHandler fun, void *ctx) OVERRIDE
 
MsgHandlerInfoGetMsgHandler () OVERRIDE
 
- Public Member Functions inherited from IHostWnd
long AddRef () PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
HWND CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID, LPVOID lpParam) PURE
 创建一个Native窗口
 
HWND GetHwnd () PURE
 获取窗口HWND
 
BOOL SubclassWindow (HWND hWnd) PURE
 用SNativeWnd对象子类化一个HWND
 
HWND UnsubclassWindow (BOOL bForce) PURE
 反子类化
 
const MSG * GetCurrentMessage () SCONST PURE
 获取当前的窗口消息对象
 
int GetDlgCtrlID () SCONST PURE
 获取窗口ID
 
DWORD GetStyle () SCONST PURE
 获取窗口Style
 
DWORD GetExStyle () SCONST PURE
 获取窗口exStyle
 
LONG_PTR GetWindowLongPtr (int nIndex) SCONST PURE
 获取窗口关联数据
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) PURE
 设置窗口关联数据
 
HWND GetParent () PURE
 获取父窗口
 
HWND SetParent (HWND hWndNewParent) PURE
 设置父窗口
 
BOOL IsWindowEnabled () SCONST PURE
 获取窗口的enable状态
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags) PURE
 修改窗口style
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags) PURE
 修改窗口exStyle
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) PURE
 设置窗口的Pos
 
BOOL CenterWindow (HWND hWndCenter) PURE
 窗口居中
 
BOOL DestroyWindow () PURE
 销毁窗口
 
BOOL IsWindow () SCONST PURE
 检查是否为有效HWND
 
BOOL Invalidate (BOOL bErase) PURE
 刷新窗口
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase) PURE
 刷新窗口指定区域
 
BOOL GetWindowRect (LPRECT lpRect) SCONST PURE
 获取窗口位置
 
BOOL GetClientRect (LPRECT lpRect) SCONST PURE
 获取窗口客户区位置
 
BOOL ClientToScreen (LPPOINT lpPoint) SCONST PURE
 将相对窗口的坐标转换为屏幕坐标
 
BOOL ClientToScreen2 (LPRECT lpRect) SCONST PURE
 将相对窗口的矩形坐标转换为屏幕坐标
 
BOOL ScreenToClient (LPPOINT lpPoint) SCONST PURE
 将屏幕坐标转换为窗口坐标
 
BOOL ScreenToClient2 (LPRECT lpRect) SCONST PURE
 将屏幕矩形坐标转换为窗口坐标
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST PURE
 将一组窗口坐标转换为相对于另一个窗口的坐标
 
int MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST PURE
 将一个窗口矩形映射为相对于另一个窗口的矩形
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)) PURE
 启动一人定时器
 
BOOL KillTimer (UINT_PTR nIDEvent) PURE
 删除一个定时器
 
HDC GetDC () PURE
 获取窗口的客户区DC
 
HDC GetWindowDC () PURE
 获取窗口DC
 
int ReleaseDC (HDC hDC) PURE
 释放DC
 
BOOL CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) PURE
 创建一个光标
 
BOOL HideCaret () PURE
 隐藏光标
 
BOOL ShowCaret () PURE
 显示光标
 
HWND GetCapture () PURE
 获取当前有鼠标捕获的HWND
 
HWND SetCapture () PURE
 将当前窗口设置为捕获鼠标输入
 
BOOL ReleaseCapture () PURE
 退出鼠标捕获
 
HWND SetFocus () PURE
 让窗口成为接收键盘输入的焦点窗口
 
LRESULT SendMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 同步执行一个消息到窗口处理过程
 
BOOL PostMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 异步执行一个消息到窗口处理过程
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 
BOOL SetWindowText (LPCTSTR lpszString) PURE
 设置窗口标题
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST PURE
 获取窗口标题文本
 
BOOL IsIconic () SCONST PURE
 查询是否为最小化状态
 
BOOL IsZoomed () SCONST PURE
 查询是否为最大化状态
 
BOOL IsWindowVisible () SCONST PURE
 查询窗口是否可见
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint) PURE
 移动窗口位置
 
BOOL MoveWindow2 (LPCRECT lpRect, BOOL bRepaint) PURE
 移动窗口位置
 
BOOL ShowWindow (int nCmdShow) PURE
 显示窗口
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw) PURE
 设置窗口异形区域
 
BOOL SetLayeredWindowAttributes (COLORREF crKey, BYTE bAlpha, DWORD dwFlags) PURE
 设置窗口的分层属性
 
BOOL UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags) PURE
 更新分层窗口
 
void SetMsgHandler (FunMsgHandler fun, void *ctx) PURE
 设置窗口消息处理函数
 
MsgHandlerInfoGetMsgHandler () PURE
 获取窗口消息处理对象
 
HWND CreateEx (HWND hWndParent, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, IXmlNode *xmlInit DEF_VAL(NULL)) PURE
 创建窗口
 
HWND Create (HWND hWndParent, int x DEF_VAL(0), int y DEF_VAL(0), int nWidth DEF_VAL(0), int nHeight DEF_VAL(0)) PURE
 创建窗口
 
void SetLayoutId (LPCTSTR pszLayoutId) PURE
 设置窗口布局资源ID
 
BOOL InitFromXml (IXmlNode *pNode) PURE
 从XML初始化窗口
 
IWindowGetIRoot () PURE
 获取Dui Root
 
BOOL IsTranslucent () SCONST PURE
 查询窗口的半透明标志
 
IHostPresenterGetPresenter () PURE
 获取窗口的上屏对象
 
void SetPresenter (IHostPresenter *pPresenter) PURE
 设置窗口上屏对象
 
IMessageLoopGetMsgLoop () PURE
 获取窗口所属的msgloop对象
 
IWindowFindIChildByID (int nId) PURE
 根据ID查找子窗口
 
IWindowFindIChildByName (LPCWSTR pszName) PURE
 根据Name查找子窗口
 
IWindowFindIChildByNameA (LPCSTR pszName) PURE
 根据Name查找子窗口
 
INcPainterGetNcPainter () PURE
 获取非客户区的绘制对象
 
void SetEventHandler (FunCallback fun, void *ctx) PURE
 设置事件处理对象
 
EventHandlerInfoGetEventHandler () PURE
 获取事件处理对象
 
BOOL AnimateHostWindow (DWORD dwTime, DWORD dwFlags) PURE
 动画显示/隐藏窗口
 
void EnableDragDrop () PURE
 让窗口支持DragDrop
 
void ShowHostWnd (int uShowCmd, BOOL bWaitAniDone) PURE
 显示或者隐藏HostWnd
 
void EnablePrivateUiDef (BOOL bEnable) PURE
 是否启用布局中定义的私有UIDef对象
 
void SetScale (int nScale, LPCRECT pDestRect) PURE
 设置窗口的dpi倍数
 
- Public Member Functions inherited from INativeWnd
long AddRef () PURE
 添加引用
 
long Release () PURE
 释放引用
 
void OnFinalRelease () PURE
 释放对象
 
HWND CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID, LPVOID lpParam) PURE
 创建一个Native窗口
 
HWND GetHwnd () PURE
 获取窗口HWND
 
BOOL SubclassWindow (HWND hWnd) PURE
 用SNativeWnd对象子类化一个HWND
 
HWND UnsubclassWindow (BOOL bForce) PURE
 反子类化
 
const MSG * GetCurrentMessage () SCONST PURE
 获取当前的窗口消息对象
 
int GetDlgCtrlID () SCONST PURE
 获取窗口ID
 
DWORD GetStyle () SCONST PURE
 获取窗口Style
 
DWORD GetExStyle () SCONST PURE
 获取窗口exStyle
 
LONG_PTR GetWindowLongPtr (int nIndex) SCONST PURE
 获取窗口关联数据
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) PURE
 设置窗口关联数据
 
HWND GetParent () PURE
 获取父窗口
 
HWND SetParent (HWND hWndNewParent) PURE
 设置父窗口
 
BOOL IsWindowEnabled () SCONST PURE
 获取窗口的enable状态
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags) PURE
 修改窗口style
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags) PURE
 修改窗口exStyle
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) PURE
 设置窗口的Pos
 
BOOL CenterWindow (HWND hWndCenter) PURE
 窗口居中
 
BOOL DestroyWindow () PURE
 销毁窗口
 
BOOL IsWindow () SCONST PURE
 检查是否为有效HWND
 
BOOL Invalidate (BOOL bErase) PURE
 刷新窗口
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase) PURE
 刷新窗口指定区域
 
BOOL GetWindowRect (LPRECT lpRect) SCONST PURE
 获取窗口位置
 
BOOL GetClientRect (LPRECT lpRect) SCONST PURE
 获取窗口客户区位置
 
BOOL ClientToScreen (LPPOINT lpPoint) SCONST PURE
 将相对窗口的坐标转换为屏幕坐标
 
BOOL ClientToScreen2 (LPRECT lpRect) SCONST PURE
 将相对窗口的矩形坐标转换为屏幕坐标
 
BOOL ScreenToClient (LPPOINT lpPoint) SCONST PURE
 将屏幕坐标转换为窗口坐标
 
BOOL ScreenToClient2 (LPRECT lpRect) SCONST PURE
 将屏幕矩形坐标转换为窗口坐标
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST PURE
 将一组窗口坐标转换为相对于另一个窗口的坐标
 
int MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST PURE
 将一个窗口矩形映射为相对于另一个窗口的矩形
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD)) PURE
 启动一人定时器
 
BOOL KillTimer (UINT_PTR nIDEvent) PURE
 删除一个定时器
 
HDC GetDC () PURE
 获取窗口的客户区DC
 
HDC GetWindowDC () PURE
 获取窗口DC
 
int ReleaseDC (HDC hDC) PURE
 释放DC
 
BOOL CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) PURE
 创建一个光标
 
BOOL HideCaret () PURE
 隐藏光标
 
BOOL ShowCaret () PURE
 显示光标
 
HWND GetCapture () PURE
 获取当前有鼠标捕获的HWND
 
HWND SetCapture () PURE
 将当前窗口设置为捕获鼠标输入
 
BOOL ReleaseCapture () PURE
 退出鼠标捕获
 
HWND SetFocus () PURE
 让窗口成为接收键盘输入的焦点窗口
 
LRESULT SendMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 同步执行一个消息到窗口处理过程
 
BOOL PostMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 异步执行一个消息到窗口处理过程
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam, LPARAM lParam) PURE
 
BOOL SetWindowText (LPCTSTR lpszString) PURE
 设置窗口标题
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST PURE
 获取窗口标题文本
 
BOOL IsIconic () SCONST PURE
 查询是否为最小化状态
 
BOOL IsZoomed () SCONST PURE
 查询是否为最大化状态
 
BOOL IsWindowVisible () SCONST PURE
 查询窗口是否可见
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint) PURE
 移动窗口位置
 
BOOL MoveWindow2 (LPCRECT lpRect, BOOL bRepaint) PURE
 移动窗口位置
 
BOOL ShowWindow (int nCmdShow) PURE
 显示窗口
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw) PURE
 设置窗口异形区域
 
BOOL SetLayeredWindowAttributes (COLORREF crKey, BYTE bAlpha, DWORD dwFlags) PURE
 设置窗口的分层属性
 
BOOL UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags) PURE
 更新分层窗口
 
void SetMsgHandler (FunMsgHandler fun, void *ctx) PURE
 设置窗口消息处理函数
 
MsgHandlerInfoGetMsgHandler () PURE
 获取窗口消息处理对象
 
- Public Member Functions inherited from IObjRef
long AddRef () PURE
 Increases the reference count.
 
long Release () PURE
 Decreases the reference count.
 
void OnFinalRelease () PURE
 Called when the reference count reaches zero and the object is about to be released.
 
- Public Member Functions inherited from SNativeWnd
int GetID () SCONST
 
void SetID (int nID)
 
HWND CreateNative (LPCTSTR lpWindowName, DWORD dwStyle, DWORD dwExStyle, int x, int y, int nWidth, int nHeight, HWND hWndParent, int nID DEF_VAL(0), LPVOID lpParam DEF_VAL(0)) OVERRIDE
 
HWND GetHwnd () OVERRIDE
 
BOOL SubclassWindow (HWND hWnd) OVERRIDE
 
HWND UnsubclassWindow (BOOL bForce DEF_VAL(FALSE)) OVERRIDE
 
const MSG * GetCurrentMessage () SCONST OVERRIDE
 
int GetDlgCtrlID () SCONST OVERRIDE
 
DWORD GetStyle () SCONST OVERRIDE
 
DWORD GetExStyle () SCONST OVERRIDE
 
LONG_PTR GetWindowLongPtr (int nIndex) SCONST OVERRIDE
 
LONG_PTR SetWindowLongPtr (int nIndex, LONG_PTR dwNewLong) OVERRIDE
 
HWND GetParent () OVERRIDE
 
HWND SetParent (HWND hWndNewParent) OVERRIDE
 
BOOL IsWindowEnabled () SCONST OVERRIDE
 
BOOL ModifyStyle (DWORD dwRemove, DWORD dwAdd, UINT nFlags DEF_VAL(0)) OVERRIDE
 
BOOL ModifyStyleEx (DWORD dwRemove, DWORD dwAdd, UINT nFlags DEF_VAL(0)) OVERRIDE
 
BOOL SetWindowPos (HWND hWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags) OVERRIDE
 
BOOL CenterWindow (HWND hWndCenter DEF_VAL(0)) OVERRIDE
 
BOOL DestroyWindow () OVERRIDE
 
BOOL IsWindow () SCONST OVERRIDE
 
BOOL Invalidate (BOOL bErase DEF_VAL(TRUE)) OVERRIDE
 
BOOL InvalidateRect (LPCRECT lpRect, BOOL bErase DEF_VAL(TRUE)) OVERRIDE
 
BOOL GetWindowRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL GetClientRect (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ClientToScreen (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ClientToScreen2 (LPRECT lpRect) SCONST OVERRIDE
 
BOOL ScreenToClient (LPPOINT lpPoint) SCONST OVERRIDE
 
BOOL ScreenToClient2 (LPRECT lpRect) SCONST OVERRIDE
 
int MapWindowPoints (HWND hWndTo, LPPOINT lpPoint, UINT nCount) SCONST OVERRIDE
 
int MapWindowRect (HWND hWndTo, LPRECT lpRect) SCONST OVERRIDE
 
UINT_PTR SetTimer (UINT_PTR nIDEvent, UINT nElapse, void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD) DEF_VAL(NULL)) OVERRIDE
 
BOOL KillTimer (UINT_PTR nIDEvent) OVERRIDE
 
HDC GetDC () OVERRIDE
 
HDC GetWindowDC () OVERRIDE
 
int ReleaseDC (HDC hDC) OVERRIDE
 
BOOL CreateCaret (HBITMAP hBitmap, int nWidth, int nHeight) OVERRIDE
 
BOOL HideCaret () OVERRIDE
 
BOOL ShowCaret () OVERRIDE
 
HWND GetCapture () OVERRIDE
 
HWND SetCapture () OVERRIDE
 
BOOL ReleaseCapture () OVERRIDE
 
HWND SetFocus () OVERRIDE
 
LRESULT SendMessage (UINT message, WPARAM wParam DEF_VAL(0), LPARAM lParam DEF_VAL(0)) OVERRIDE
 
BOOL PostMessage (UINT message, WPARAM wParam DEF_VAL(0), LPARAM lParam DEF_VAL(0)) OVERRIDE
 
BOOL SendNotifyMessage (UINT message, WPARAM wParam DEF_VAL(0), LPARAM lParam DEF_VAL(0)) OVERRIDE
 
BOOL SetWindowText (LPCTSTR lpszString) OVERRIDE
 
int GetWindowText (LPTSTR lpszStringBuf, int nMaxCount) SCONST OVERRIDE
 
BOOL IsIconic () SCONST OVERRIDE
 
BOOL IsZoomed () SCONST OVERRIDE
 
BOOL IsWindowVisible () SCONST OVERRIDE
 
BOOL MoveWindow (int x, int y, int nWidth, int nHeight, BOOL bRepaint DEF_VAL(TRUE)) OVERRIDE
 
BOOL MoveWindow2 (LPCRECT lpRect, BOOL bRepaint DEF_VAL(TRUE)) OVERRIDE
 
BOOL ShowWindow (int nCmdShow) OVERRIDE
 
int SetWindowRgn (HRGN hRgn, BOOL bRedraw DEF_VAL(TRUE)) OVERRIDE
 
BOOL SetLayeredWindowAttributes (COLORREF crKey, BYTE bAlpha, DWORD dwFlags) OVERRIDE
 
BOOL UpdateLayeredWindow (HDC hdcDst, POINT *pptDst, SIZE *psize, HDC hdcSrc, POINT *pptSrc, COLORREF crKey, BLENDFUNCTION *pblend, DWORD dwFlags) OVERRIDE
 
void SetMsgHandler (FunMsgHandler fun, void *ctx) OVERRIDE
 
MsgHandlerInfoGetMsgHandler () OVERRIDE
 
LRESULT DefWindowProc ()
 
LRESULT ForwardNotifications (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
LRESULT ReflectNotifications (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual BOOL ProcessWindowMessage (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult, DWORD dwMsgMapID=0)
 
- Public Member Functions inherited from TObjRefImpl< INativeWnd >
long AddRef () override
 
long Release () override
 释放引用
 
void OnFinalRelease () override
 释放对象
 
- Public Member Functions inherited from SwndContainerImpl
 SwndContainerImpl ()
 Constructor.
 
IDropTarget * GetDropTarget ()
 Retrieves the drop target.
 
SFocusManagerGetFocusManager ()
 Retrieves the focus manager.
 
void SetRoot (SWindow *pRoot)
 Sets the root window of the container.
 
virtual LRESULT DoFrameEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Processes frame events.
 
void OnNextFrame () OVERRIDE
 Called when the next frame is ready.
 
- Public Member Functions inherited from ISwndContainer
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注册动画帧处理接口
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注销动画帧处理接口
 
BOOL RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) PURE
 向Swnd注册IDropTarget
 
BOOL UnregisterDragDrop (SWND swnd) PURE
 从Swnd注销IDropTarget
 
BOOL OnFireEvent (IEvtArgs *evt) PURE
 响应事件
 
IMessageLoopGetMsgLoop () PURE
 获取当前的Message Loop
 
IScriptModuleGetScriptModule () PURE
 获取脚本模块
 
HWND GetHostHwnd () PURE
 获取宿主窗口HWND
 
BOOL IsTranslucent () SCONST PURE
 获取宿主窗口半透明标志
 
BOOL IsSendWheel2Hover () SCONST PURE
 获取将mouseWheel消息分发到hover窗口的标志
 
int GetScale () SCONST PURE
 获取当前dpi放大倍数
 
LPCWSTR GetTranslatorContext () SCONST PURE
 获取翻译上下文
 
void GetContainerRect (RECT *ret) SCONST PURE
 获取容器显示位置
 
void UpdateRegion (IRegionS *rgn) PURE
 刷新指定区域的内存位图
 
void OnRedraw (LPCRECT rc, BOOL bClip) PURE
 请求重绘
 
SWND OnGetSwndCapture () SCONST PURE
 获取捕获鼠标的Swnd对象
 
SWND OnSetSwndCapture (SWND swnd) PURE
 设置捕获鼠标的Swnd对象
 
BOOL OnReleaseSwndCapture () PURE
 释放捕获鼠标的Swnd
 
SWND GetHover () SCONST PURE
 获取Hover的Swnd
 
SWND GetFocus () SCONST PURE
 获取焦点的Swnd
 
void OnSetSwndFocus (SWND swnd) PURE
 设置窗口焦点
 
BOOL UpdateWindow (BOOL bForce DEF_VAL(TRUE)) PURE
 请求立即更新窗口
 
void UpdateTooltip () PURE
 请求更新tooltip
 
void SetToolTip (LPCRECT rc, UINT tipAlign, LPCTSTR pszTip) PURE
 在指定位置显示tooltip
 
void FrameToHost (RECT *rc) SCONST PURE
 将当前Frame的矩形坐标转换成最终Host的坐标
 
IAcceleratorMgrGetAcceleratorMgr () PURE
 获取加速键管理器
 
BOOL RegisterTrackMouseEvent (SWND swnd) PURE
 将Swnd注册为TrackMouseEvent窗口
 
BOOL UnregisterTrackMouseEvent (SWND swnd) PURE
 将Swnd注销TrackMouseEvent窗口
 
void MarkWndTreeZorderDirty () PURE
 标记窗口树的zorder失效
 
void BuildWndTreeZorder () PURE
 重建窗口树的zorder
 
void EnableIME (BOOL bEnable) PURE
 启用/关闭输入法
 
void OnUpdateCursor () PURE
 更新Cursor
 
BOOL RegisterVideoCanvas (SWND swnd) PURE
 注册VideoCanvas窗口
 
BOOL UnregisterVideoCanvas (SWND swnd) PURE
 注销VideoCanvas窗口
 
void EnableHostPrivateUiDef (BOOL bEnable) PURE
 启用/禁用宿主私有UI定义
 
BOOL PostTask (IRunnable *runable, BOOL bAsync DEF_VAL(TRUE)) PURE
 提交任务
 
int RemoveTasksForObject (void *pObj) PURE
 移除对象的任务
 
- Public Member Functions inherited from ITimelineHandlersMgr
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注册动画帧处理接口
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) PURE
 注销动画帧处理接口
 
- Public Member Functions inherited from ITimelineHandler
void OnNextFrame () PURE
 下一个动画帧处理接口
 

Additional Inherited Members

- Public Types inherited from SHostWnd
enum  {
  kPulseTimer = 4321 , kPulseInterval = 10 , kNcCheckTimer = 4322 , kNcCheckInterval = 50 ,
  kTaskTimer = 4323 , kTaskInterval = 100
}
 
- Static Public Member Functions inherited from SHostWnd
static void SetHideLocalUiDef (BOOL bHide)
 
static void SetTaskQueueBufSize (int nBufSize)
 
- Static Public Member Functions inherited from SNativeWnd
static ATOM RegisterSimpleWnd (HINSTANCE hInst, LPCTSTR pszSimpleWndName, BOOL bImeWnd)
 
static void InitWndClass (HINSTANCE hInst, LPCTSTR pszSimpleWndName, BOOL bImeWnd)
 
static BOOL DefaultReflectionHandler (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lResult)
 
- Public Attributes inherited from SNativeWnd
HWND m_hWnd
 
- Protected Member Functions inherited from SHostWnd
virtual void OnHostAnimationStarted (IAnimation *pAni)
 
virtual void OnHostAnimationStoped (IAnimation *pAni)
 
void _RedrawRegion (IRegionS *pRgn, CRect &rcInvalid)
 
void _Redraw ()
 
void _RestoreClickState ()
 
void _Invalidate (LPCRECT prc)
 
void _SetToolTipInfo (const SwndToolTipInfo *info, BOOL bNcTip)
 
void _Init ()
 
void _ExcludeVideoCanvasFromPaint (IRenderTarget *pRT)
 
void _PaintVideoCanvasForeground (IRenderTarget *pRT)
 
void OnPrint (HDC dc, UINT uFlags=0)
 
void OnPaint (HDC dc)
 
BOOL OnEraseBkgnd (HDC dc)
 
int OnCreate (LPCREATESTRUCT lpCreateStruct)
 
void OnDestroy ()
 
void OnSize (UINT nType, CSize size)
 
void OnMouseMove (UINT nFlags, CPoint point)
 
void OnMouseLeave ()
 
BOOL OnSetCursor (HWND hWnd, UINT nHitTest, UINT message)
 
void OnTimer (UINT_PTR idEvent)
 
LRESULT OnMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
LRESULT OnKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
LRESULT OnActivateApp (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
BOOL OnMouseWheel (UINT nFlags, short zDelta, CPoint pt)
 
void OnActivate (UINT nState, BOOL bMinimized, HWND wndOther)
 
void OnGetMinMaxInfo (LPMINMAXINFO lpMMI)
 
void OnSetFocus (HWND wndOld)
 
void OnKillFocus (HWND wndFocus)
 
void UpdatePresenter (HDC dc, IRenderTarget *pRT, LPCRECT rc, BYTE byAlpha=255, UINT uFlag=0)
 
void OnCaptureChanged (HWND wnd)
 
LRESULT OnMenuExEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
void OnWindowPosChanging (LPWINDOWPOS lpWndPos)
 
void OnWindowPosChanged (LPWINDOWPOS lpWndPos)
 
LRESULT OnGetObject (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
void OnSysCommand (UINT nID, CPoint lParam)
 
void OnCommand (UINT uNotifyCode, int nID, HWND wndCtl)
 
virtual IToolTipCreateTooltip () const
 
virtual void DestroyTooltip (IToolTip *pTooltip) const
 
virtual BOOL OnLoadLayoutFromResourceID (SXmlDoc &xmlDoc)
 
virtual SXmlNode OnGetInitXmlNode (SXmlDoc &xmlDoc)
 
virtual void OnUserXmlNode (SXmlNode xmlUser)
 
virtual SRootWindowCreateRoot ()
 
LRESULT OnSetLanguage (UINT uMsg, WPARAM wp, LPARAM lp)
 
LRESULT OnUpdateFont (UINT uMsg, WPARAM wp, LPARAM lp)
 
LRESULT OnRunTasks (UINT uMsg, WPARAM wp, LPARAM lp)
 
 BEGIN_MSG_MAP_EX (SHostWnd) MSG_WM_SIZE(OnSize) MSG_WM_PRINT(OnPrint) MSG_WM_PAINT(OnPaint) MSG_WM_CREATE(OnCreate) MSG_WM_DESTROY(OnDestroy) MSG_WM_ERASEBKGND(OnEraseBkgnd) MSG_WM_MOUSELEAVE(OnMouseLeave) MSG_WM_MOUSEMOVE(OnMouseMove) MSG_WM_MOUSEWHEEL(OnMouseWheel) MSG_WM_ACTIVATE(OnActivate) MSG_WM_SETFOCUS(OnSetFocus) MSG_WM_KILLFOCUS(OnKillFocus) MESSAGE_RANGE_HANDLER_EX(WM_MOUSEFIRST
 
OnMouseEvent MESSAGE_RANGE_HANDLER_EX (WM_KEYFIRST, WM_KEYLAST, OnKeyEvent) MESSAGE_RANGE_HANDLER_EX(WM_IME_STARTCOMPOSITION
 
OnMouseEvent OnKeyEvent MESSAGE_HANDLER_EX (WM_IME_CHAR, OnKeyEvent) MESSAGE_HANDLER_EX(WM_IME_REQUEST
 
OnMouseEvent OnKeyEvent OnKeyEvent MESSAGE_HANDLER_EX (WM_ACTIVATEAPP, OnActivateApp) MSG_WM_SETCURSOR(OnSetCursor) MSG_WM_TIMER(OnTimer) MSG_WM_GETMINMAXINFO(OnGetMinMaxInfo) MSG_WM_CAPTURECHANGED(OnCaptureChanged) MESSAGE_HANDLER_EX(UM_MENUEVENT
 
OnMouseEvent OnKeyEvent OnKeyEvent OnMenuExEvent MSG_WM_WINDOWPOSCHANGING (OnWindowPosChanging) MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) MESSAGE_HANDLER_EX(WM_GETOBJECT
 
OnMouseEvent OnKeyEvent OnKeyEvent OnMenuExEvent OnGetObject MSG_WM_COMMAND (OnCommand) MSG_WM_SYSCOMMAND(OnSysCommand) MESSAGE_HANDLER_EX(UM_UPDATEFONT
 
OnMouseEvent OnKeyEvent OnKeyEvent OnMenuExEvent OnGetObject OnUpdateFont MESSAGE_HANDLER_EX (UM_SETLANGUAGE, OnSetLanguage) MESSAGE_HANDLER_EX(UM_RUN_TASKS
 
- Protected Member Functions inherited from SNativeWnd
LRESULT DefWindowProc (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
virtual void OnFinalMessage (HWND hWnd)
 
- Protected Member Functions inherited from SwndContainerImpl
BOOL RegisterDragDrop (SWND swnd, IDropTarget *pDropTarget) OVERRIDE
 Registers a drop target for a window.
 
BOOL UnregisterDragDrop (SWND swnd) OVERRIDE
 Unregisters a drop target for a window.
 
BOOL OnReleaseSwndCapture () OVERRIDE
 Releases the window capture.
 
SWND OnSetSwndCapture (SWND swnd) OVERRIDE
 Sets the window capture.
 
void OnSetSwndFocus (SWND swnd) OVERRIDE
 Sets the window focus.
 
void FrameToHost (RECT *rc) SCONST OVERRIDE
 Transforms a rectangle from frame coordinates to host coordinates.
 
SWND OnGetSwndCapture () SCONST OVERRIDE
 Retrieves the window handle that has capture.
 
SWND GetFocus () SCONST OVERRIDE
 Retrieves the window handle that has focus.
 
SWND GetHover () SCONST OVERRIDE
 Retrieves the window handle that is hovered.
 
IAcceleratorMgrGetAcceleratorMgr ()
 Retrieves the accelerator manager.
 
BOOL RegisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 Registers a timeline handler.
 
BOOL UnregisterTimelineHandler (ITimelineHandler *pHandler) OVERRIDE
 Unregisters a timeline handler.
 
BOOL RegisterTrackMouseEvent (SWND swnd) OVERRIDE
 Registers a window for tracking mouse events.
 
BOOL UnregisterTrackMouseEvent (SWND swnd) OVERRIDE
 Unregisters a window for tracking mouse events.
 
void MarkWndTreeZorderDirty () OVERRIDE
 Marks the window tree's z-order as dirty.
 
void BuildWndTreeZorder () OVERRIDE
 Rebuilds the window tree's z-order.
 
BOOL RegisterVideoCanvas (SWND swnd) OVERRIDE
 Registers a window as a video canvas.
 
BOOL UnregisterVideoCanvas (SWND swnd) OVERRIDE
 Unregisters a window as a video canvas.
 
void OnFrameMouseMove (UINT uFlag, CPoint pt)
 Handles mouse move events within the frame.
 
void OnFrameMouseLeave ()
 Handles mouse leave events within the frame.
 
BOOL OnFrameSetCursor (const CPoint &pt)
 Sets the cursor based on the mouse position.
 
void OnFrameMouseEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles mouse events within the frame.
 
void OnFrameMouseWheel (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles mouse wheel events within the frame.
 
LRESULT OnFrameKeyEvent (UINT uMsg, WPARAM wParam, LPARAM lParam)
 Handles key events within the frame.
 
void OnFrameKeyDown (UINT nChar, UINT nRepCnt, UINT nFlags)
 Handles key down events within the frame.
 
void OnActivate (UINT nState)
 Handles window activation events.
 
void OnActivateApp (BOOL bActive, DWORD dwThreadID)
 Handles application activation events.
 
void _BuildWndTreeZorder (IWindow *pWnd, UINT &iOrder)
 Recursively builds the z-order of the window tree.
 
- Static Protected Member Functions inherited from SNativeWnd
static LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK StartWindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
- Protected Attributes inherited from SHostWnd
SDummyWndm_dummyWnd
 
SHostWndAttr m_hostAttr
 
SStringT m_strXmlLayout
 
BOOL m_bTrackFlag
 
BOOL m_bNeedRepaint
 
BOOL m_bNeedAllRepaint
 
IToolTipm_pTipCtrl
 
SAutoRefPtr< IRegionSm_rgnInvalidate
 
SAutoRefPtr< IRenderTargetm_memRT
 
SAutoRefPtr< IUiDefInfom_privateUiDefInfo
 
int m_cEnableUiDefCount
 
SAutoRefPtr< IScriptModulem_pScriptModule
 
SAutoRefPtr< SNcPainterm_pNcPainter
 
MSG m_msgMouse
 
CSize m_szAppSetted
 
CSize m_szPrev
 
int m_nAutoSizing
 
bool m_bResizing
 
SAutoRefPtr< IAnimationm_hostAnimation
 
DWORD m_AniState
 
BOOL m_bFirstShow
 
tid_t m_dwThreadID
 
SRootWindowm_pRoot
 
EventHandlerInfo m_evtHandler
 
SAutoRefPtr< IHostPresenterm_presenter
 
SCriticalSection m_cs
 
SList< IRunnable * > m_runnables
 
SCriticalSection m_csRunningQueue
 
SList< IRunnable * > m_runningQueue
 
IXmlNodem_xmlInit
 
SHostWnd::SHostAnimationHandler m_hostAnimationHandler
 
 WM_MOUSELAST
 
OnMouseEvent WM_IME_KEYLAST
 
- Protected Attributes inherited from SNativeWnd
const MSG * m_pCurrentMsg
 
BOOL m_bDestoryed
 
MsgHandlerInfo m_msgHandlerInfo
 
tagThunk * m_pThunk
 
WNDPROC m_pfnSuperWindowProc
 
- Protected Attributes inherited from TObjRefImpl< INativeWnd >
LONG m_cRef
 
- Protected Attributes inherited from SwndContainerImpl
SWindowm_pRoot
 
SWND m_hCapture
 
SWND m_hHover
 
BOOL m_bNcHover
 
SFocusManager m_focusMgr
 
SDropTargetDispatcher m_dropTarget
 
BOOL m_bZorderDirty
 
SList< SWND > m_lstTrackMouseEvtWnd
 
SList< SWND > m_lstVideoCanvas
 
SAutoRefPtr< ICaretm_caret
 
STimerlineHandlerMgr m_timelineHandlerMgr
 
- Static Protected Attributes inherited from SHostWnd
static BOOL s_HideLocalUiDef = TRUE
 
static int s_TaskQueueBufSize = 5
 

Detailed Description

template<class T>
class THostWndProxy< T >

Definition at line 8 of file SHostWndProxy.h.

Constructor & Destructor Documentation

◆ THostWndProxy() [1/2]

template<class T>
THostWndProxy< T >::THostWndProxy ( LPCWSTR pszResId)
inline

Definition at line 12 of file SHostWndProxy.h.

◆ THostWndProxy() [2/2]

template<class T>
THostWndProxy< T >::THostWndProxy ( LPCSTR pszResId)
inline

Definition at line 16 of file SHostWndProxy.h.

Member Function Documentation

◆ AddRef()

template<class T>
long THostWndProxy< T >::AddRef ( )
inline

Definition at line 22 of file SHostWndProxy.h.

◆ AnimateHostWindow()

template<class T>
BOOL THostWndProxy< T >::AnimateHostWindow ( DWORD dwTime,
DWORD dwFlags )
inline

Definition at line 371 of file SHostWndProxy.h.

◆ CenterWindow()

template<class T>
BOOL THostWndProxy< T >::CenterWindow ( HWND hWndCenter = NULL)
inline

Definition at line 121 of file SHostWndProxy.h.

◆ ClientToScreen()

template<class T>
BOOL THostWndProxy< T >::ClientToScreen ( LPPOINT lpPoint)
inline

Definition at line 149 of file SHostWndProxy.h.

◆ ClientToScreen2()

template<class T>
BOOL THostWndProxy< T >::ClientToScreen2 ( LPRECT lpRect)
inline

Definition at line 153 of file SHostWndProxy.h.

◆ Create()

template<class T>
HWND THostWndProxy< T >::Create ( HWND hWndParent,
int x = 0,
int y = 0,
int nWidth = 0,
int nHeight = 0 )
inline

Definition at line 311 of file SHostWndProxy.h.

◆ CreateCaret()

template<class T>
BOOL THostWndProxy< T >::CreateCaret ( HBITMAP hBitmap,
int nWidth,
int nHeight )
inline

Definition at line 197 of file SHostWndProxy.h.

◆ CreateEx()

template<class T>
HWND THostWndProxy< T >::CreateEx ( HWND hWndParent,
DWORD dwStyle,
DWORD dwExStyle,
int x,
int y,
int nWidth,
int nHeight,
IXmlNode *xmlInit DEF_VALNULL )
inline

Definition at line 306 of file SHostWndProxy.h.

◆ CreateNative()

template<class T>
HWND THostWndProxy< T >::CreateNative ( LPCTSTR lpWindowName,
DWORD dwStyle,
DWORD dwExStyle,
int x,
int y,
int nWidth,
int nHeight,
HWND hWndParent,
int nID,
LPVOID lpParam )
inline

Definition at line 43 of file SHostWndProxy.h.

◆ DestroyWindow()

template<class T>
BOOL THostWndProxy< T >::DestroyWindow ( )
inline

Definition at line 125 of file SHostWndProxy.h.

◆ EnableDragDrop()

template<class T>
void THostWndProxy< T >::EnableDragDrop ( )
inline

Definition at line 375 of file SHostWndProxy.h.

◆ EnablePrivateUiDef()

template<class T>
void THostWndProxy< T >::EnablePrivateUiDef ( BOOL bEnable)
inline

Definition at line 381 of file SHostWndProxy.h.

◆ FindIChildByID()

template<class T>
IWindow * THostWndProxy< T >::FindIChildByID ( int nId)
inline

Definition at line 346 of file SHostWndProxy.h.

◆ FindIChildByName()

template<class T>
IWindow * THostWndProxy< T >::FindIChildByName ( LPCWSTR pszName)
inline

Definition at line 350 of file SHostWndProxy.h.

◆ FindIChildByNameA()

template<class T>
IWindow * THostWndProxy< T >::FindIChildByNameA ( LPCSTR pszName)
inline

Definition at line 354 of file SHostWndProxy.h.

◆ GetCapture()

template<class T>
HWND THostWndProxy< T >::GetCapture ( )
inline

Definition at line 214 of file SHostWndProxy.h.

◆ GetClientRect()

template<class T>
BOOL THostWndProxy< T >::GetClientRect ( LPRECT lpRect)
inline

Definition at line 145 of file SHostWndProxy.h.

◆ GetCurrentMessage()

template<class T>
const MSG * THostWndProxy< T >::GetCurrentMessage ( )
inline

Definition at line 72 of file SHostWndProxy.h.

◆ GetDC()

template<class T>
HDC THostWndProxy< T >::GetDC ( )
inline

Definition at line 185 of file SHostWndProxy.h.

◆ GetDlgCtrlID()

template<class T>
int THostWndProxy< T >::GetDlgCtrlID ( )
inline

Definition at line 76 of file SHostWndProxy.h.

◆ GetEventHandler()

template<class T>
EventHandlerInfo * THostWndProxy< T >::GetEventHandler ( )
inline

Definition at line 367 of file SHostWndProxy.h.

◆ GetExStyle()

template<class T>
DWORD THostWndProxy< T >::GetExStyle ( )
inline

Definition at line 84 of file SHostWndProxy.h.

◆ GetHwnd()

template<class T>
HWND THostWndProxy< T >::GetHwnd ( )
inline

Definition at line 59 of file SHostWndProxy.h.

◆ GetID()

template<class T>
int THostWndProxy< T >::GetID ( )
inline

Definition at line 34 of file SHostWndProxy.h.

◆ GetIRoot()

template<class T>
IWindow * THostWndProxy< T >::GetIRoot ( )
inline

Definition at line 326 of file SHostWndProxy.h.

◆ GetMsgHandler()

template<class T>
MsgHandlerInfo * THostWndProxy< T >::GetMsgHandler ( )
inline

Definition at line 302 of file SHostWndProxy.h.

◆ GetMsgLoop()

template<class T>
IMessageLoop * THostWndProxy< T >::GetMsgLoop ( )
inline

Definition at line 342 of file SHostWndProxy.h.

◆ GetNcPainter()

template<class T>
INcPainter * THostWndProxy< T >::GetNcPainter ( )
inline

Definition at line 358 of file SHostWndProxy.h.

◆ GetParent()

template<class T>
HWND THostWndProxy< T >::GetParent ( )
inline

Definition at line 96 of file SHostWndProxy.h.

◆ GetPresenter()

template<class T>
IHostPresenter * THostWndProxy< T >::GetPresenter ( )
inline

Definition at line 334 of file SHostWndProxy.h.

◆ GetStyle()

template<class T>
DWORD THostWndProxy< T >::GetStyle ( )
inline

Definition at line 80 of file SHostWndProxy.h.

◆ GetWindowDC()

template<class T>
HDC THostWndProxy< T >::GetWindowDC ( )
inline

Definition at line 189 of file SHostWndProxy.h.

◆ GetWindowLongPtr()

template<class T>
LONG_PTR THostWndProxy< T >::GetWindowLongPtr ( int nIndex)
inline

Definition at line 88 of file SHostWndProxy.h.

◆ GetWindowRect()

template<class T>
BOOL THostWndProxy< T >::GetWindowRect ( LPRECT lpRect)
inline

Definition at line 141 of file SHostWndProxy.h.

◆ GetWindowText()

template<class T>
int THostWndProxy< T >::GetWindowText ( LPTSTR lpszStringBuf,
int nMaxCount )
inline

Definition at line 246 of file SHostWndProxy.h.

◆ HideCaret()

template<class T>
BOOL THostWndProxy< T >::HideCaret ( )
inline

Definition at line 201 of file SHostWndProxy.h.

◆ InitFromXml()

template<class T>
BOOL THostWndProxy< T >::InitFromXml ( IXmlNode * pNode)
inline

Definition at line 317 of file SHostWndProxy.h.

◆ Invalidate()

template<class T>
BOOL THostWndProxy< T >::Invalidate ( BOOL bErase = TRUE)
inline

Definition at line 133 of file SHostWndProxy.h.

◆ InvalidateRect()

template<class T>
BOOL THostWndProxy< T >::InvalidateRect ( LPCRECT lpRect,
BOOL bErase = TRUE )
inline

Definition at line 137 of file SHostWndProxy.h.

◆ IsIconic()

template<class T>
BOOL THostWndProxy< T >::IsIconic ( )
inline

Definition at line 250 of file SHostWndProxy.h.

◆ IsTranslucent()

template<class T>
BOOL THostWndProxy< T >::IsTranslucent ( )
inline

Definition at line 331 of file SHostWndProxy.h.

◆ IsWindow()

template<class T>
BOOL THostWndProxy< T >::IsWindow ( )
inline

Definition at line 129 of file SHostWndProxy.h.

◆ IsWindowEnabled()

template<class T>
BOOL THostWndProxy< T >::IsWindowEnabled ( )
inline

Definition at line 104 of file SHostWndProxy.h.

◆ IsWindowVisible()

template<class T>
BOOL THostWndProxy< T >::IsWindowVisible ( )
inline

Definition at line 258 of file SHostWndProxy.h.

◆ IsZoomed()

template<class T>
BOOL THostWndProxy< T >::IsZoomed ( )
inline

Definition at line 254 of file SHostWndProxy.h.

◆ KillTimer()

template<class T>
BOOL THostWndProxy< T >::KillTimer ( UINT_PTR nIDEvent)
inline

Definition at line 181 of file SHostWndProxy.h.

◆ MapWindowPoints()

template<class T>
int THostWndProxy< T >::MapWindowPoints ( HWND hWndTo,
LPPOINT lpPoint,
UINT nCount )
inline

Definition at line 165 of file SHostWndProxy.h.

◆ MapWindowRect()

template<class T>
int THostWndProxy< T >::MapWindowRect ( HWND hWndTo,
LPRECT lpRect )
inline

Definition at line 170 of file SHostWndProxy.h.

◆ ModifyStyle()

template<class T>
BOOL THostWndProxy< T >::ModifyStyle ( DWORD dwRemove,
DWORD dwAdd,
UINT nFlags = 0 )
inline

Definition at line 108 of file SHostWndProxy.h.

◆ ModifyStyleEx()

template<class T>
BOOL THostWndProxy< T >::ModifyStyleEx ( DWORD dwRemove,
DWORD dwAdd,
UINT nFlags = 0 )
inline

Definition at line 112 of file SHostWndProxy.h.

◆ MoveWindow()

template<class T>
BOOL THostWndProxy< T >::MoveWindow ( int x,
int y,
int nWidth,
int nHeight,
BOOL bRepaint = TRUE )
inline

Definition at line 262 of file SHostWndProxy.h.

◆ MoveWindow2()

template<class T>
BOOL THostWndProxy< T >::MoveWindow2 ( LPCRECT lpRect,
BOOL bRepaint = TRUE )
inline

Definition at line 267 of file SHostWndProxy.h.

◆ OnFinalRelease()

template<class T>
void THostWndProxy< T >::OnFinalRelease ( )
inline

Definition at line 30 of file SHostWndProxy.h.

◆ PostMessage()

template<class T>
BOOL THostWndProxy< T >::PostMessage ( UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0 )
inline

Definition at line 233 of file SHostWndProxy.h.

◆ Release()

template<class T>
long THostWndProxy< T >::Release ( )
inline

Definition at line 26 of file SHostWndProxy.h.

◆ ReleaseCapture()

template<class T>
BOOL THostWndProxy< T >::ReleaseCapture ( )
inline

Definition at line 219 of file SHostWndProxy.h.

◆ ReleaseDC()

template<class T>
int THostWndProxy< T >::ReleaseDC ( HDC hDC)
inline

Definition at line 193 of file SHostWndProxy.h.

◆ ScreenToClient()

template<class T>
BOOL THostWndProxy< T >::ScreenToClient ( LPPOINT lpPoint)
inline

Definition at line 157 of file SHostWndProxy.h.

◆ ScreenToClient2()

template<class T>
BOOL THostWndProxy< T >::ScreenToClient2 ( LPRECT lpRect)
inline

Definition at line 161 of file SHostWndProxy.h.

◆ SendMessage()

template<class T>
LRESULT THostWndProxy< T >::SendMessage ( UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0 )
inline

Definition at line 228 of file SHostWndProxy.h.

◆ SendNotifyMessage()

template<class T>
BOOL THostWndProxy< T >::SendNotifyMessage ( UINT message,
WPARAM wParam = 0,
LPARAM lParam = 0 )
inline

Definition at line 237 of file SHostWndProxy.h.

◆ SetCapture()

template<class T>
HWND THostWndProxy< T >::SetCapture ( )
inline

Definition at line 209 of file SHostWndProxy.h.

◆ SetEventHandler()

template<class T>
void THostWndProxy< T >::SetEventHandler ( FunCallback fun,
void * ctx )
inline

Definition at line 363 of file SHostWndProxy.h.

◆ SetFocus()

template<class T>
HWND THostWndProxy< T >::SetFocus ( )
inline

Definition at line 224 of file SHostWndProxy.h.

◆ SetID()

template<class T>
void THostWndProxy< T >::SetID ( int nID)
inline

Definition at line 38 of file SHostWndProxy.h.

◆ SetLayeredWindowAttributes()

template<class T>
BOOL THostWndProxy< T >::SetLayeredWindowAttributes ( COLORREF crKey,
BYTE byAlpha,
DWORD dwFlags )
inline

Definition at line 279 of file SHostWndProxy.h.

◆ SetLayoutId()

template<class T>
void THostWndProxy< T >::SetLayoutId ( LPCTSTR pszLayoutId)
inline

Definition at line 321 of file SHostWndProxy.h.

◆ SetMsgHandler()

template<class T>
void THostWndProxy< T >::SetMsgHandler ( FunMsgHandler fun,
void * ctx )
inline

Definition at line 298 of file SHostWndProxy.h.

◆ SetParent()

template<class T>
HWND THostWndProxy< T >::SetParent ( HWND hWndNewParent)
inline

Definition at line 100 of file SHostWndProxy.h.

◆ SetPresenter()

template<class T>
void THostWndProxy< T >::SetPresenter ( IHostPresenter * pPresenter)
inline

Definition at line 338 of file SHostWndProxy.h.

◆ SetScale()

template<class T>
void THostWndProxy< T >::SetScale ( int nScale,
LPCRECT pDestRect )
inline

Definition at line 384 of file SHostWndProxy.h.

◆ SetTimer()

template<class T>
UINT_PTR THostWndProxy< T >::SetTimer ( UINT_PTR nIDEvent,
UINT nElapse,
void(CALLBACK *lpfnTimer)(HWND, UINT, UINT_PTR, DWORD) = NULL )
inline

Definition at line 174 of file SHostWndProxy.h.

◆ SetWindowLongPtr()

template<class T>
LONG_PTR THostWndProxy< T >::SetWindowLongPtr ( int nIndex,
LONG_PTR dwNewLong )
inline

Definition at line 92 of file SHostWndProxy.h.

◆ SetWindowPos()

template<class T>
BOOL THostWndProxy< T >::SetWindowPos ( HWND hWndInsertAfter,
int x,
int y,
int cx,
int cy,
UINT nFlags )
inline

Definition at line 116 of file SHostWndProxy.h.

◆ SetWindowRgn()

template<class T>
int THostWndProxy< T >::SetWindowRgn ( HRGN hRgn,
BOOL bRedraw = TRUE )
inline

Definition at line 275 of file SHostWndProxy.h.

◆ SetWindowText()

template<class T>
BOOL THostWndProxy< T >::SetWindowText ( LPCTSTR lpszString)
inline

Definition at line 242 of file SHostWndProxy.h.

◆ ShowCaret()

template<class T>
BOOL THostWndProxy< T >::ShowCaret ( )
inline

Definition at line 205 of file SHostWndProxy.h.

◆ ShowHostWnd()

template<class T>
void THostWndProxy< T >::ShowHostWnd ( int uShowCmd,
BOOL bWaitAniDone )
inline

Definition at line 378 of file SHostWndProxy.h.

◆ ShowWindow()

template<class T>
BOOL THostWndProxy< T >::ShowWindow ( int nCmdShow)
inline

Definition at line 271 of file SHostWndProxy.h.

◆ SubclassWindow()

template<class T>
BOOL THostWndProxy< T >::SubclassWindow ( HWND hWnd)
inline

Definition at line 64 of file SHostWndProxy.h.

◆ UnsubclassWindow()

template<class T>
HWND THostWndProxy< T >::UnsubclassWindow ( BOOL bForce = FALSE)
inline

Definition at line 68 of file SHostWndProxy.h.

◆ UpdateLayeredWindow()

template<class T>
BOOL THostWndProxy< T >::UpdateLayeredWindow ( HDC hdcDst,
POINT * pptDst,
SIZE * psize,
HDC hdcSrc,
POINT * pptSrc,
COLORREF crKey,
BLENDFUNCTION * pblend,
DWORD dwFlags )
inline

Definition at line 284 of file SHostWndProxy.h.


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