UICommonControls.h ( 文件浏览 )
- keepall 发布于 2016-08-23 13:24
- 浏览次数:542
- 下载次数: 1
- 下载需 20 积分
-
- 侵权举报
#ifndef __UICOMMONCONTROLS_H__ #define __UICOMMONCONTROLS_H__ #pragma once namespace DuiLib { ///////////////////////////////////////////////////////////////////////////////////// // class UILIB_API CLabelUI : public CControlUI { public: CLabelUI(); LPCTSTR GetClass() const; LPVOID GetInterface(LPCTSTR pstrName); void SetTextStyle(UINT uStyle); UINT GetTextStyle() const; void SetTextColor(DWORD dwTextColor); DWORD GetTextColor() const; void SetDisabledTextColor(DWORD dwTextColor); DWORD GetDisabledTextColor() const; void SetFont(int index); int GetFont() const; RECT GetTextPadding() const; void SetTextPadding(RECT rc); bool IsShowHtml(); void SetShowHtml(bool bShowHtml = true); SIZE EstimateSize(SIZE szAvailable); void DoEvent(TEventUI& event); void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); void PaintText(HDC hDC); protected: DWORD m_dwTextColor; DWORD m_dwDisabledTextColor; int m_iFont; UINT m_uTextStyle; RECT m_rcTextPadding; bool m_bShowHtml; }; ///////////////////////////////////////////////////////////////////////////////////// // class UILIB_API CButtonUI : public CLabelUI { public: CButtonUI(); LPCTSTR GetClass() const; LPVOID GetInterface(LPCTSTR pstrName); UINT GetControlFlags() const; bool Activate(); void SetEnabled(bool bEnable = true); void DoEvent(TEventUI& event); LPCTSTR GetNormalImage(); void SetNormalImage(LPCTSTR pStrImage); LPCTSTR GetHotImage(); void SetHotImage(LPCTSTR pStrImage); LPCTSTR GetPushedImage(); void SetPushedImage(LPCTSTR pStrImage); LPCTSTR GetFocusedImage(); void SetFocusedImage(LPCTSTR pStrImage); LPCTSTR GetDisabledImage(); void SetDisabledImage(LPCTSTR pStrImage); void SetHotTextColor(DWORD dwColor); DWORD GetHotTextColor() const; void SetPushedTextColor(DWORD dwColor); DWORD GetPushedTextColor() const; void SetFocusedTextColor(DWORD dwColor); DWORD GetFocusedTextColor() const; SIZE EstimateSize(SIZE szAvailable); void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue); void PaintText(HDC hDC); void PaintStatusImage(HDC hDC); protected: UINT m_uButtonState; DWORD m_dwHotTextColor; DWORD m_dwPushedTextColor; DWORD m_dwFocusedTextColor; CStdString m_sNormalImage; CStdString m_sHotImage; CStdString m_sPushedImage; CStdString m_sFocusedImage; CStdString m_sDisabledImage; }; ///////////////////////////////////////////////////////////////////////////////////// // class UILIB_API COptionUI : public CButtonUI { public: COptionUI(); ~COptionUI(); LPCTSTR GetClass() const; LPVOID GetInterface(LPCTSTR pstrName); void SetManager(CPaintManagerUI* pManager, CControlUI* pParent, bool bInit = true); bool Activate(); void SetEnabled(bool bEnable =[!==More==!]
...
展开> <收缩
Sponsored links
源码文件列表
温馨提示: 点击源码文件名可预览文件内容哦 ^_^ Sponsored links