|
duilib自学教程
|
窗口消息及图形绘制管理器类 更多...
#include <UIManager.h>
Public 成员函数 | |
| void | Init (HWND hWnd, LPCTSTR pstrName=NULL) |
| bool | IsUpdateNeeded () const |
| void | NeedUpdate () |
| void | Invalidate () |
| void | Invalidate (RECT &rcItem) |
| LPCTSTR | GetName () const |
| HDC | GetPaintDC () const |
| HBITMAP | GetPaintOffscreenBitmap () |
| HWND | GetPaintWindow () const |
| HWND | GetTooltipWindow () const |
| int | GetTooltipWindowWidth () const |
| void | SetTooltipWindowWidth (int iWidth) |
| int | GetHoverTime () const |
| void | SetHoverTime (int iTime) |
| POINT | GetMousePos () const |
| SIZE | GetClientSize () const |
| SIZE | GetInitSize () |
| void | SetInitSize (int cx, int cy) |
| RECT & | GetSizeBox () |
| void | SetSizeBox (RECT &rcSizeBox) |
| RECT & | GetCaptionRect () |
| void | SetCaptionRect (RECT &rcCaption) |
| SIZE | GetRoundCorner () const |
| void | SetRoundCorner (int cx, int cy) |
| SIZE | GetMinInfo () const |
| void | SetMinInfo (int cx, int cy) |
| SIZE | GetMaxInfo () const |
| void | SetMaxInfo (int cx, int cy) |
| bool | IsShowUpdateRect () const |
| void | SetShowUpdateRect (bool show) |
| bool | IsNoActivate () |
| void | SetNoActivate (bool bNoActivate) |
| BYTE | GetOpacity () const |
| void | SetOpacity (BYTE nOpacity) |
| bool | IsLayered () |
| void | SetLayered (bool bLayered) |
| RECT & | GetLayeredInset () |
| void | SetLayeredInset (RECT &rcLayeredInset) |
| BYTE | GetLayeredOpacity () |
| void | SetLayeredOpacity (BYTE nOpacity) |
| LPCTSTR | GetLayeredImage () |
| void | SetLayeredImage (LPCTSTR pstrImage) |
| bool | IsForceUseSharedRes () const |
| void | SetForceUseSharedRes (bool bForce) |
| DWORD | GetDefaultDisabledColor () const |
| void | SetDefaultDisabledColor (DWORD dwColor, bool bShared=false) |
| DWORD | GetDefaultFontColor () const |
| void | SetDefaultFontColor (DWORD dwColor, bool bShared=false) |
| DWORD | GetDefaultLinkFontColor () const |
| void | SetDefaultLinkFontColor (DWORD dwColor, bool bShared=false) |
| DWORD | GetDefaultLinkHoverFontColor () const |
| void | SetDefaultLinkHoverFontColor (DWORD dwColor, bool bShared=false) |
| DWORD | GetDefaultSelectedBkColor () const |
| void | SetDefaultSelectedBkColor (DWORD dwColor, bool bShared=false) |
| TFontInfo * | GetDefaultFontInfo () |
| void | SetDefaultFont (LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic, bool bShared=false) |
| DWORD | GetCustomFontCount (bool bShared=false) const |
| HFONT | AddFont (int id, LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic, bool bShared=false) |
| HFONT | GetFont (int id) |
| HFONT | GetFont (LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic) |
| int | GetFontIndex (HFONT hFont, bool bShared=false) |
| int | GetFontIndex (LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic, bool bShared=false) |
| void | RemoveFont (HFONT hFont, bool bShared=false) |
| void | RemoveFont (int id, bool bShared=false) |
| void | RemoveAllFonts (bool bShared=false) |
| TFontInfo * | GetFontInfo (int id) |
| TFontInfo * | GetFontInfo (HFONT hFont) |
| const TImageInfo * | GetImage (LPCTSTR bitmap) |
| const TImageInfo * | GetImageEx (LPCTSTR bitmap, LPCTSTR type=NULL, DWORD mask=0, bool bUseHSL=false) |
| const TImageInfo * | AddImage (LPCTSTR bitmap, LPCTSTR type=NULL, DWORD mask=0, bool bUseHSL=false, bool bShared=false) |
| const TImageInfo * | AddImage (LPCTSTR bitmap, HBITMAP hBitmap, int iWidth, int iHeight, bool bAlpha, bool bShared=false) |
| void | RemoveImage (LPCTSTR bitmap, bool bShared=false) |
| void | RemoveAllImages (bool bShared=false) |
| void | ReloadImages () |
| void | AddDefaultAttributeList (LPCTSTR pStrControlName, LPCTSTR pStrControlAttrList, bool bShared=false) |
| LPCTSTR | GetDefaultAttributeList (LPCTSTR pStrControlName) const |
| bool | RemoveDefaultAttributeList (LPCTSTR pStrControlName, bool bShared=false) |
| void | RemoveAllDefaultAttributeList (bool bShared=false) |
| void | AddWindowCustomAttribute (LPCTSTR pstrName, LPCTSTR pstrAttr) |
| LPCTSTR | GetWindowCustomAttribute (LPCTSTR pstrName) const |
| bool | RemoveWindowCustomAttribute (LPCTSTR pstrName) |
| void | RemoveAllWindowCustomAttribute () |
| CDuiString | GetWindowAttribute (LPCTSTR pstrName) |
| void | SetWindowAttribute (LPCTSTR pstrName, LPCTSTR pstrValue) |
| CDuiString | GetWindowAttributeList (bool bIgnoreDefault=true) |
| void | SetWindowAttributeList (LPCTSTR pstrList) |
| bool | RemoveWindowAttribute (LPCTSTR pstrName) |
| CDuiString | GetWindowXML () |
| bool | AttachDialog (CControlUI *pControl) |
| bool | InitControls (CControlUI *pControl, CControlUI *pParent=NULL) |
| bool | RenameControl (CControlUI *pControl, LPCTSTR pstrName) |
| void | ReapObjects (CControlUI *pControl) |
| bool | AddOptionGroup (LPCTSTR pStrGroupName, CControlUI *pControl) |
| CDuiPtrArray * | GetOptionGroup (LPCTSTR pStrGroupName) |
| void | RemoveOptionGroup (LPCTSTR pStrGroupName, CControlUI *pControl) |
| void | RemoveAllOptionGroups () |
| CControlUI * | GetFocus () const |
| void | SetFocus (CControlUI *pControl, bool bFocusWnd=true) |
| void | SetFocusNeeded (CControlUI *pControl) |
| bool | SetNextTabControl (bool bForward=true) |
| bool | SetTimer (CControlUI *pControl, UINT nTimerID, UINT uElapse) |
| bool | KillTimer (CControlUI *pControl, UINT nTimerID) |
| void | KillTimer (CControlUI *pControl) |
| void | RemoveAllTimers () |
| void | SetCapture () |
| void | ReleaseCapture () |
| bool | IsCaptured () |
| bool | IsPainting () |
| void | SetPainting (bool bIsPainting) |
| bool | AddNotifier (INotifyUI *pControl) |
| bool | RemoveNotifier (INotifyUI *pControl) |
| void | SendNotify (TNotifyUI &Msg, bool bAsync=false, bool bEnableRepeat=true) |
| void | SendNotify (CControlUI *pControl, LPCTSTR pstrMessage, WPARAM wParam=0, LPARAM lParam=0, bool bAsync=false, bool bEnableRepeat=true) |
| bool | AddPreMessageFilter (IMessageFilterUI *pFilter) |
| bool | RemovePreMessageFilter (IMessageFilterUI *pFilter) |
| bool | AddMessageFilter (IMessageFilterUI *pFilter) |
| bool | RemoveMessageFilter (IMessageFilterUI *pFilter) |
| int | GetPostPaintCount () const |
| bool | AddPostPaint (CControlUI *pControl) |
| bool | RemovePostPaint (CControlUI *pControl) |
| bool | SetPostPaintIndex (CControlUI *pControl, int iIndex) |
| int | GetNativeWindowCount () const |
| RECT | GetNativeWindowRect (HWND hChildWnd) |
| bool | AddNativeWindow (CControlUI *pControl, HWND hChildWnd) |
| bool | RemoveNativeWindow (HWND hChildWnd) |
| void | AddDelayedCleanup (CControlUI *pControl) |
| void | AddMouseLeaveNeeded (CControlUI *pControl) |
| bool | RemoveMouseLeaveNeeded (CControlUI *pControl) |
| bool | AddTranslateAccelerator (ITranslateAccelerator *pTranslateAccelerator) |
| bool | RemoveTranslateAccelerator (ITranslateAccelerator *pTranslateAccelerator) |
| bool | TranslateAccelerator (LPMSG pMsg) |
| CControlUI * | GetRoot () const |
| CControlUI * | FindControl (POINT pt) const |
| CControlUI * | FindControl (LPCTSTR pstrName) const |
| CControlUI * | FindSubControlByPoint (CControlUI *pParent, POINT pt) const |
| CControlUI * | FindSubControlByName (CControlUI *pParent, LPCTSTR pstrName) const |
| CControlUI * | FindSubControlByClass (CControlUI *pParent, LPCTSTR pstrClass, int iIndex=0) |
| CDuiPtrArray * | FindSubControlsByClass (CControlUI *pParent, LPCTSTR pstrClass) |
| bool | MessageHandler (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lRes) |
| bool | PreMessageHandler (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT &lRes) |
| void | UsedVirtualWnd (bool bUsed) |
静态 Public 成员函数 | |
| static HINSTANCE | GetInstance () |
| static CDuiString | GetInstancePath () |
| static CDuiString | GetCurrentPath () |
| static HINSTANCE | GetResourceDll () |
| static const CDuiString & | GetResourcePath () |
| static const CDuiString & | GetResourceZip () |
| static bool | IsCachedResourceZip () |
| static HANDLE | GetResourceZipHandle () |
| static void | SetInstance (HINSTANCE hInst) |
| static void | SetCurrentPath (LPCTSTR pStrPath) |
| static void | SetResourceDll (HINSTANCE hInst) |
| static void | SetResourcePath (LPCTSTR pStrPath) |
| static void | SetResourceZip (LPVOID pVoid, unsigned int len) |
| static void | SetResourceZip (LPCTSTR pstrZip, bool bCachedResourceZip=false) |
| static bool | GetHSL (short *H, short *S, short *L) |
| static void | SetHSL (bool bUseHSL, short H, short S, short L) |
| static void | ReloadSkin () |
| static CPaintManagerUI * | GetPaintManager (LPCTSTR pstrName) |
| static CDuiPtrArray * | GetPaintManagers () |
| static bool | LoadPlugin (LPCTSTR pstrModuleName) |
| static CDuiPtrArray * | GetPlugins () |
| static void | ReloadSharedImages () |
| static void | AddMultiLanguageString (int id, LPCTSTR pStrMultiLanguage) |
| static LPCTSTR | GetMultiLanguageString (int id) |
| static bool | RemoveMultiLanguageString (int id) |
| static void | RemoveAllMultiLanguageString () |
| static void | ProcessMultiLanguageTokens (CDuiString &pStrMultiLanguage) |
| static void | MessageLoop () |
| static bool | TranslateMessage (const LPMSG pMsg) |
| static void | Term () |
Public 属性 | |
| CDuiPtrArray | m_aTranslateAccelerator |
窗口消息及图形绘制管理器类
与窗口绑定,主要作用: 1) 绘制控件。 2) 消息管理。 3) 事件通知。
1.8.18