duilib自学教程
Public 成员函数 | Protected 成员函数 | Protected 属性 | 静态 Protected 属性 | 所有成员列表
DuiLib::WindowImplBase类 参考abstract

基础窗口类 更多...

#include <WinImplBase.h>

类 DuiLib::WindowImplBase 继承关系图:
DuiLib::CWindowWnd DuiLib::CNotifyPump DuiLib::INotifyUI DuiLib::IMessageFilterUI DuiLib::IDialogBuilderCallback

Public 成员函数

virtual void InitWindow ()
 
virtual void OnFinalMessage (HWND hWnd)
 
virtual void Notify (TNotifyUI &msg)
 接收通知消息 更多...
 
virtual void OnClick (TNotifyUI &msg)
 
virtual UINT GetClassStyle () const
 
virtual UILIB_RESOURCETYPE GetResourceType () const
 
virtual CDuiString GetZIPFileName () const
 
virtual LPCTSTR GetResourceID () const
 
virtual CControlUICreateControl (LPCTSTR pstrClass)
 
virtual LRESULT MessageHandler (UINT uMsg, WPARAM wParam, LPARAM, bool &)
 
virtual LRESULT OnClose (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnDestroy (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnSize (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual LRESULT OnChar (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual LRESULT OnSysCommand (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual LRESULT OnCreate (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual LRESULT OnKeyDown (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnKillFocus (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnSetFocus (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnLButtonDown (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnLButtonUp (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT OnMouseMove (UINT, WPARAM, LPARAM, BOOL &bHandled)
 
virtual LRESULT HandleMessage (UINT uMsg, WPARAM wParam, LPARAM lParam)
 
virtual LRESULT HandleCustomMessage (UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 
virtual LONG GetStyle ()
 
- Public 成员函数 继承自 DuiLib::CWindowWnd
HWND GetHWND () const
 获得当前窗口句柄 更多...
 
 operator HWND () const
 
bool RegisterWindowClass ()
 窗口类注册 更多...
 
bool RegisterSuperclass ()
 父类窗口注册 更多...
 
HWND Create (HWND hwndParent, LPCTSTR pstrName, DWORD dwStyle, DWORD dwExStyle, const RECT rc, HMENU hMenu=NULL)
 创建一个窗口 更多...
 
HWND Create (HWND hwndParent, LPCTSTR pstrName, DWORD dwStyle, DWORD dwExStyle, int x=CW_USEDEFAULT, int y=CW_USEDEFAULT, int cx=CW_USEDEFAULT, int cy=CW_USEDEFAULT, HMENU hMenu=NULL)
 创建一个窗口 更多...
 
HWND CreateDuiWindow (HWND hwndParent, LPCTSTR pstrWindowName, DWORD dwStyle=0, DWORD dwExStyle=0)
 创建一个DUI窗口 更多...
 
HWND Subclass (HWND hWnd)
 子类化 更多...
 
void Unsubclass ()
 取消子类化 更多...
 
void ShowWindow (bool bShow=true, bool bTakeFocus=true)
 显示当前窗口 更多...
 
UINT ShowModal ()
 显示模态框 更多...
 
void Close (UINT nRet=IDOK)
 关闭当前窗口 更多...
 
void CenterWindow ()
 居中当前窗口,支持扩展屏幕 更多...
 
void SetIcon (UINT nRes)
 设置窗口图标 更多...
 
LRESULT SendMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0L)
 发送指定消息到当前窗口 更多...
 
LRESULT PostMessage (UINT uMsg, WPARAM wParam=0, LPARAM lParam=0L)
 发送指定消息到当前窗口 更多...
 
void ResizeClient (int cx=-1, int cy=-1)
 重置当前窗口大小 更多...
 
- Public 成员函数 继承自 DuiLib::CNotifyPump
bool AddVirtualWnd (CDuiString strName, CNotifyPump *pObject)
 
bool RemoveVirtualWnd (CDuiString strName)
 
void NotifyPump (TNotifyUI &msg)
 
bool LoopDispatch (TNotifyUI &msg)
 

Protected 成员函数

virtual CDuiString GetSkinFolder ()=0
 
virtual CDuiString GetSkinFile ()=0
 
virtual LPCTSTR GetWindowClassName (void) const =0
 
virtual LRESULT ResponseDefaultKeyEvent (WPARAM wParam)
 
- Protected 成员函数 继承自 DuiLib::CWindowWnd
virtual LPCTSTR GetSuperClassName () const
 

Protected 属性

CPaintManagerUI m_PaintManager
 
- Protected 属性 继承自 DuiLib::CWindowWnd
HWND m_hWnd
 
WNDPROC m_OldWndProc
 
bool m_bSubclassed
 

静态 Protected 属性

static LPBYTE m_lpResourceZIPBuffer =NULL
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 DuiLib::CWindowWnd
static LRESULT CALLBACK __WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
static LRESULT CALLBACK __ControlProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

详细描述

基础窗口类

成员函数说明

◆ Notify()

void DuiLib::WindowImplBase::Notify ( TNotifyUI msg)
virtual

接收通知消息

参数
msg接收到的通知消息

实现了 DuiLib::INotifyUI.


该类的文档由以下文件生成: