duilib自学教程
|
#include <UICheckBox.h>
Public 成员函数 | |
LPCTSTR | GetClass () const |
LPVOID | GetInterface (LPCTSTR pstrName) |
void | SetCheck (bool bCheck, bool bTriggerEvent=true) |
bool | GetCheck () const |
![]() | |
LPCTSTR | GetClass () const |
LPVOID | GetInterface (LPCTSTR pstrName) |
void | SetManager (CPaintManagerUI *pManager, CControlUI *pParent, bool bInit=true) |
bool | Activate () |
void | SetEnabled (bool bEnable=true) |
LPCTSTR | GetSelectedImage () |
void | SetSelectedImage (LPCTSTR pStrImage) |
LPCTSTR | GetSelectedHotImage () |
void | SetSelectedHotImage (LPCTSTR pStrImage) |
void | SetSelectedTextColor (DWORD dwTextColor) |
DWORD | GetSelectedTextColor () |
void | SetSelectedBkColor (DWORD dwBkColor) |
DWORD | GetSelectBkColor () |
LPCTSTR | GetForeImage () |
void | SetForeImage (LPCTSTR pStrImage) |
LPCTSTR | GetGroup () const |
void | SetGroup (LPCTSTR pStrGroupName=NULL) |
bool | IsSelected () const |
virtual void | Selected (bool bSelected, bool bTriggerEvent=true) |
SIZE | EstimateSize (SIZE szAvailable) |
void | SetAttribute (LPCTSTR pstrName, LPCTSTR pstrValue) |
void | PaintStatusImage (HDC hDC) |
void | PaintText (HDC hDC) |
![]() | |
UINT | GetControlFlags () const |
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) |
LPCTSTR | GetForeImage () |
void | SetForeImage (LPCTSTR pStrImage) |
LPCTSTR | GetHotForeImage () |
void | SetHotForeImage (LPCTSTR pStrImage) |
void | SetFiveStatusImage (LPCTSTR pStrImage) |
void | SetFadeAlphaDelta (BYTE uDelta) |
BYTE | GetFadeAlphaDelta () |
void | SetHotBkColor (DWORD dwColor) |
DWORD | GetHotBkColor () const |
void | SetHotTextColor (DWORD dwColor) |
DWORD | GetHotTextColor () const |
void | SetPushedTextColor (DWORD dwColor) |
DWORD | GetPushedTextColor () const |
void | SetFocusedTextColor (DWORD dwColor) |
DWORD | GetFocusedTextColor () const |
![]() | |
void | SetFixedWidth (int cx) |
void | SetFixedHeight (int cy) |
void | SetText (LPCTSTR pstrText) |
void | SetTextStyle (UINT uStyle) |
UINT | GetTextStyle () const |
bool | IsMultiLine () |
void | SetMultiLine (bool bMultiLine=true) |
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) |
void | DoEvent (TEventUI &event) |
void | SetEnabledEffect (bool _EnabledEffect) |
bool | GetEnabledEffect () |
void | SetEnabledLuminous (bool bEnableLuminous) |
bool | GetEnabledLuminous () |
void | SetLuminousFuzzy (float fFuzzy) |
float | GetLuminousFuzzy () |
void | SetGradientLength (int _GradientLength) |
int | GetGradientLength () |
void | SetShadowOffset (int _offset, int _angle) |
RectF | GetShadowOffset () |
void | SetTextColor1 (DWORD _TextColor1) |
DWORD | GetTextColor1 () |
void | SetTextShadowColorA (DWORD _TextShadowColorA) |
DWORD | GetTextShadowColorA () |
void | SetTextShadowColorB (DWORD _TextShadowColorB) |
DWORD | GetTextShadowColorB () |
void | SetStrokeColor (DWORD _StrokeColor) |
DWORD | GetStrokeColor () |
void | SetGradientAngle (int _SetGradientAngle) |
int | GetGradientAngle () |
void | SetEnabledStroke (bool _EnabledStroke) |
bool | GetEnabledStroke () |
void | SetEnabledShadow (bool _EnabledShadowe) |
bool | GetEnabledShadow () |
![]() | |
virtual void | Delete () |
virtual CDuiString | GetName () const |
virtual void | SetName (LPCTSTR pstrName) |
virtual HWND | GetNativeWindow () const |
virtual CPaintManagerUI * | GetManager () const |
virtual CControlUI * | GetParent () const |
virtual CControlUI * | GetCover () const |
virtual void | SetCover (CControlUI *pControl) |
virtual CDuiString | GetText () const |
DWORD | GetBkColor () const |
void | SetBkColor (DWORD dwBackColor) |
DWORD | GetBkColor2 () const |
void | SetBkColor2 (DWORD dwBackColor) |
DWORD | GetBkColor3 () const |
void | SetBkColor3 (DWORD dwBackColor) |
LPCTSTR | GetBkImage () |
void | SetBkImage (LPCTSTR pStrImage) |
DWORD | GetFocusBorderColor () const |
void | SetFocusBorderColor (DWORD dwBorderColor) |
bool | IsColorHSL () const |
void | SetColorHSL (bool bColorHSL) |
SIZE | GetBorderRound () const |
void | SetBorderRound (SIZE cxyRound) |
bool | DrawImage (HDC hDC, TDrawInfo &drawInfo) |
DWORD | GetBorderColor () const |
void | SetBorderColor (DWORD dwBorderColor) |
RECT | GetBorderSize () const |
void | SetBorderSize (RECT rc) |
void | SetBorderSize (int iSize) |
int | GetBorderStyle () const |
void | SetBorderStyle (int nStyle) |
virtual const RECT & | GetPos () const |
virtual RECT | GetRelativePos () const |
virtual RECT | GetClientPos () const |
virtual void | SetPos (RECT rc, bool bNeedInvalidate=true) |
virtual void | Move (SIZE szOffset, bool bNeedInvalidate=true) |
virtual int | GetWidth () const |
virtual int | GetHeight () const |
virtual int | GetX () const |
virtual int | GetY () const |
virtual RECT | GetPadding () const |
virtual void | SetPadding (RECT rcPadding) |
virtual SIZE | GetFixedXY () const |
virtual void | SetFixedXY (SIZE szXY) |
virtual TPercentInfo | GetFloatPercent () const |
virtual void | SetFloatPercent (TPercentInfo piFloatPercent) |
virtual int | GetFixedWidth () const |
virtual int | GetFixedHeight () const |
virtual int | GetMinWidth () const |
virtual void | SetMinWidth (int cx) |
virtual int | GetMaxWidth () const |
virtual void | SetMaxWidth (int cx) |
virtual int | GetMinHeight () const |
virtual void | SetMinHeight (int cy) |
virtual int | GetMaxHeight () const |
virtual void | SetMaxHeight (int cy) |
virtual CDuiString | GetToolTip () const |
virtual void | SetToolTip (LPCTSTR pstrText) |
virtual void | SetToolTipWidth (int nWidth) |
virtual int | GetToolTipWidth (void) |
virtual TCHAR | GetShortcut () const |
virtual void | SetShortcut (TCHAR ch) |
virtual bool | IsContextMenuUsed () const |
virtual void | SetContextMenuUsed (bool bMenuUsed) |
virtual const CDuiString & | GetUserData () |
virtual void | SetUserData (LPCTSTR pstrText) |
virtual UINT_PTR | GetTag () const |
virtual void | SetTag (UINT_PTR pTag) |
virtual bool | IsVisible () const |
virtual void | SetVisible (bool bVisible=true) |
virtual void | SetInternVisible (bool bVisible=true) |
virtual bool | IsEnabled () const |
virtual bool | IsMouseEnabled () const |
virtual void | SetMouseEnabled (bool bEnable=true) |
virtual bool | IsKeyboardEnabled () const |
virtual void | SetKeyboardEnabled (bool bEnable=true) |
virtual bool | IsFocused () const |
virtual void | SetFocus () |
virtual bool | IsFloat () const |
virtual void | SetFloat (bool bFloat=true) |
void | AddCustomAttribute (LPCTSTR pstrName, LPCTSTR pstrAttr) |
LPCTSTR | GetCustomAttribute (LPCTSTR pstrName) const |
bool | RemoveCustomAttribute (LPCTSTR pstrName) |
void | RemoveAllCustomAttribute () |
virtual CControlUI * | FindControl (FINDCONTROLPROC Proc, LPVOID pData, UINT uFlags) |
void | Invalidate () |
bool | IsUpdateNeeded () const |
void | NeedUpdate () |
void | NeedParentUpdate () |
DWORD | GetAdjustColor (DWORD dwColor) |
virtual void | Init () |
virtual void | DoInit () |
virtual void | Event (TEventUI &event) |
virtual CDuiString | GetAttribute (LPCTSTR pstrName) |
virtual CDuiString | GetAttributeList (bool bIgnoreDefault=true) |
virtual void | SetAttributeList (LPCTSTR pstrList) |
virtual bool | Paint (HDC hDC, const RECT &rcPaint, CControlUI *pStopControl=NULL) |
virtual bool | DoPaint (HDC hDC, const RECT &rcPaint, CControlUI *pStopControl) |
virtual void | PaintBkColor (HDC hDC) |
virtual void | PaintBkImage (HDC hDC) |
virtual void | PaintBorder (HDC hDC) |
virtual void | DoPostPaint (HDC hDC, const RECT &rcPaint) |
void | SetVirtualWnd (LPCTSTR pstrValue) |
CDuiString | GetVirtualWnd () const |
额外继承的成员函数 | |
![]() | |
CEventSource | OnInit |
CEventSource | OnDestroy |
CEventSource | OnSize |
CEventSource | OnEvent |
CEventSource | OnNotify |
CEventSource | OnPaint |
CEventSource | OnPostPaint |
![]() | |
enum | { FADE_TIMERID = 11, FADE_ELLAPSE = 30 } |
![]() | |
bool | m_bSelected |
CDuiString | m_sGroupName |
DWORD | m_dwSelectedBkColor |
DWORD | m_dwSelectedTextColor |
TDrawInfo | m_diSelected |
TDrawInfo | m_diSelectedHot |
TDrawInfo | m_diFore |
![]() | |
UINT | m_uButtonState |
DWORD | m_dwHotBkColor |
DWORD | m_dwHotTextColor |
DWORD | m_dwPushedTextColor |
DWORD | m_dwFocusedTextColor |
BYTE | m_uFadeAlpha |
BYTE | m_uFadeAlphaDelta |
TDrawInfo | m_diNormal |
TDrawInfo | m_diHot |
TDrawInfo | m_diHotFore |
TDrawInfo | m_diPushed |
TDrawInfo | m_diPushedFore |
TDrawInfo | m_diFocused |
TDrawInfo | m_diDisabled |
![]() | |
LPWSTR | m_pWideText |
DWORD | m_dwTextColor |
DWORD | m_dwDisabledTextColor |
int | m_iFont |
UINT | m_uTextStyle |
RECT | m_rcTextPadding |
bool | m_bShowHtml |
SIZE | m_szAvailableLast |
SIZE | m_cxyFixedLast |
bool | m_bNeedEstimateSize |
float | m_fLuminousFuzzy |
int | m_GradientLength |
int | m_GradientAngle |
bool | m_EnableEffect |
bool | m_bEnableLuminous |
bool | m_EnabledStroke |
bool | m_EnabledShadow |
DWORD | m_dwTextColor1 |
DWORD | m_dwTextShadowColorA |
DWORD | m_dwTextShadowColorB |
DWORD | m_dwStrokeColor |
RectF | m_ShadowOffset |
ULONG_PTR | m_gdiplusToken |
GdiplusStartupInput | m_gdiplusStartupInput |
![]() | |
CPaintManagerUI * | m_pManager |
CControlUI * | m_pParent |
CControlUI * | m_pCover |
CDuiString | m_sVirtualWnd |
CDuiString | m_sName |
bool | m_bUpdateNeeded |
bool | m_bMenuUsed |
bool | m_bAsyncNotify |
RECT | m_rcItem |
RECT | m_rcPadding |
SIZE | m_cXY |
SIZE | m_cxyFixed |
SIZE | m_cxyMin |
SIZE | m_cxyMax |
bool | m_bVisible |
bool | m_bInternVisible |
bool | m_bEnabled |
bool | m_bMouseEnabled |
bool | m_bKeyboardEnabled |
bool | m_bFocused |
bool | m_bFloat |
TPercentInfo | m_piFloatPercent |
bool | m_bSetPos |
CDuiString | m_sText |
CDuiString | m_sToolTip |
TCHAR | m_chShortcut |
CDuiString | m_sUserData |
UINT_PTR | m_pTag |
DWORD | m_dwBackColor |
DWORD | m_dwBackColor2 |
DWORD | m_dwBackColor3 |
TDrawInfo | m_diBk |
TDrawInfo | m_diFore |
DWORD | m_dwBorderColor |
DWORD | m_dwFocusBorderColor |
bool | m_bColorHSL |
int | m_nBorderStyle |
int | m_nTooltipWidth |
SIZE | m_cxyBorderRound |
RECT | m_rcPaint |
RECT | m_rcBorderSize |
CDuiStringPtrMap | m_mCustomAttrHash |
最普通的单选按钮控件,只有是、否两种结果 派生于COptionUI,只是每组只有一个按钮而已,组名为空,配置文件默认属性举例: <CheckBox name="CheckBox" value="height='20' align='left' textpadding='24,0,0,0' normalimage='file='sys_check_btn.png' source='0,0,20,20' dest='0,0,20,20'' selectedimage='file='sys_check_btn.png' source='20,0,40,20' dest='0,0,20,20'' disabledimage='file='sys_check_btn.png' source='40,0,60,20' dest='0,0,20,20''">