|
|
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 |
| | 设置窗口消息处理函数
|
| |
| MsgHandlerInfo * | GetMsgHandler () 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初始化窗口
|
| |
| IWindow * | GetIRoot () PURE |
| | 获取Dui Root
|
| |
| BOOL | IsTranslucent () SCONST PURE |
| | 查询窗口的半透明标志
|
| |
| IHostPresenter * | GetPresenter () PURE |
| | 获取窗口的上屏对象
|
| |
| void | SetPresenter (IHostPresenter *pPresenter) PURE |
| | 设置窗口上屏对象
|
| |
| IMessageLoop * | GetMsgLoop () PURE |
| | 获取窗口所属的msgloop对象
|
| |
| IWindow * | FindIChildByID (int nId) PURE |
| | 根据ID查找子窗口
|
| |
| IWindow * | FindIChildByName (LPCWSTR pszName) PURE |
| | 根据Name查找子窗口
|
| |
| IWindow * | FindIChildByNameA (LPCSTR pszName) PURE |
| | 根据Name查找子窗口
|
| |
| INcPainter * | GetNcPainter () PURE |
| | 获取非客户区的绘制对象
|
| |
| void | SetEventHandler (FunCallback fun, void *ctx) PURE |
| | 设置事件处理对象
|
| |
| EventHandlerInfo * | GetEventHandler () 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倍数
|
| |
|
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 |
| | 设置窗口消息处理函数
|
| |
| MsgHandlerInfo * | GetMsgHandler () PURE |
| | 获取窗口消息处理对象
|
| |
| 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.
|
| |