ReactOS 0.4.16-dev-329-g9223134
CUIFButton2 Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFButton2:
Collaboration diagram for CUIFButton2:

Public Member Functions

 CUIFButton2 (CUIFObject *pParent, DWORD nObjectID, LPCRECT prc, DWORD style)
 
 ~CUIFButton2 () override
 
DWORD MakeDrawFlag ()
 
 STDMETHOD_ (BOOL, OnPaintTheme)(HDC hDC) override
 
 STDMETHOD_ (void, OnPaintNoTheme)(HDC hDC) override
 
- Public Member Functions inherited from CUIFButton
 CUIFButton (CUIFObject *pParent, DWORD nObjectID, LPCRECT prc, DWORD style)
 
 ~CUIFButton () override
 
void SetIcon (HICON hIcon)
 
void SetText (LPCWSTR pszText)
 
void GetIconSize (HICON hIcon, LPSIZE pSize)
 
void GetTextSize (LPCWSTR pszText, LPSIZE pSize)
 
 STDMETHOD_ (void, Enable)(BOOL bEnable) override
 
 STDMETHOD_ (void, OnMouseIn)(LONG x
 
 STDMETHOD_ (void, OnMouseOut)(LONG x
 
 STDMETHOD_ (void, OnLButtonDown)(LONG x
 
 STDMETHOD_ (void, OnLButtonUp)(LONG x
 
 STDMETHOD_ (void, OnPaintNoTheme)(HDC hDC) override
 
 STDMETHOD_ (void, SetStatus)(UINT uStatus)
 
- Public Member Functions inherited from CUIFObject
 CUIFObject (CUIFObject *pParent, DWORD nObjectID, LPCRECT prc, DWORD style)
 @unimplemented
 
virtual ~CUIFObject ()
 
void StartCapture ()
 
void EndCapture ()
 
BOOL IsCapture ()
 
BOOL IsRTL ()
 
LRESULT NotifyCommand (WPARAM wParam, LPARAM lParam)
 
CUIFObjectObjectFromPoint (POINT pt)
 
void SetScheme (CUIFScheme *scheme)
 
void StartTimer (WPARAM wParam)
 
void EndTimer ()
 
 STDMETHOD_ (BOOL, Initialize)()
 
 STDMETHOD_ (void, OnPaint)(HDC hDC)
 
 STDMETHOD_ (void, OnTimer)()
 
 STDMETHOD_ (void, OnLButtonDown)(LONG x
 
 STDMETHOD_ (void, GetRect)(LPRECT prc)
 
 STDMETHOD_ (void, SetRect)(LPCRECT prc)
 
 STDMETHOD_ (BOOL, PtInObject)(POINT pt)
 
 STDMETHOD_ (void, PaintObject)(HDC hDC
 
 STDMETHOD_ (void, CallOnPaint)()
 
 STDMETHOD_ (void, Enable)(BOOL bEnable)
 
 STDMETHOD_ (void, Show)(BOOL bVisible)
 
 STDMETHOD_ (void, SetFontToThis)(HFONT hFont)
 
 STDMETHOD_ (void, SetFont)(HFONT hFont)
 
 STDMETHOD_ (void, SetStyle)(DWORD style)
 
 STDMETHOD_ (void, AddUIObj)(CUIFObject *pObject)
 
 STDMETHOD_ (void, RemoveUIObj)(CUIFObject *pObject)
 
 STDMETHOD_ (LRESULT, OnObjectNotify)(CUIFObject *pObject
 
 STDMETHOD_ (void, SetToolTip)(LPCWSTR pszToolTip)
 
 STDMETHOD_ (LPCWSTR, GetToolTip)()
 
 STDMETHOD_ (LRESULT, OnShowToolTip)()
 
 STDMETHOD_ (void, OnHideToolTip)()
 
 STDMETHOD_ (void, DetachWndObj)()
 
 STDMETHOD_ (void, ClearWndObj)()
 
 STDMETHOD_ (BOOL, OnPaintTheme)(HDC hDC)
 
 STDMETHOD_ (void, OnPaintNoTheme)(HDC hDC)
 
 STDMETHOD_ (void, ClearTheme)()
 
- Public Member Functions inherited from CUIFTheme
HRESULT InternalOpenThemeData (HWND hWnd)
 
HRESULT EnsureThemeData (HWND hWnd)
 
HRESULT CloseThemeData ()
 
STDMETHOD() DrawThemeBackground (HDC hDC, int iStateId, LPCRECT pRect, LPCRECT pClipRect)
 
STDMETHOD() DrawThemeParentBackground (HWND hwnd, HDC hDC, LPRECT prc)
 
STDMETHOD() DrawThemeText (HDC hDC, int iStateId, LPCWSTR pszText, int cchText, DWORD dwTextFlags, DWORD dwTextFlags2, LPCRECT pRect)
 
STDMETHOD() DrawThemeIcon (HDC hDC, int iStateId, LPCRECT pRect, HIMAGELIST himl, int iImageIndex)
 
STDMETHOD() GetThemeBackgroundExtent (HDC hDC, int iStateId, LPCRECT pContentRect, LPRECT pExtentRect)
 
STDMETHOD() GetThemeBackgroundContentRect (HDC hDC, int iStateId, LPCRECT pBoundingRect, LPRECT pContentRect)
 
STDMETHOD() GetThemeTextExtent (HDC hDC, int iStateId, LPCWSTR pszText, int cchCharCount, DWORD dwTextFlags, LPCRECT pBoundingRect, LPRECT pExtentRect)
 
STDMETHOD() GetThemePartSize (HDC hDC, int iStateId, LPRECT prc, THEMESIZE eSize, SIZE *psz)
 
STDMETHOD() DrawThemeEdge (HDC hDC, int iStateId, LPCRECT pDestRect, UINT uEdge, UINT uFlags, LPRECT pContentRect)
 
STDMETHOD() GetThemeColor (int iStateId, int iPropId, COLORREF *pColor)
 
STDMETHOD() GetThemeMargins (HDC hDC, int iStateId, int iPropId, LPRECT prc, MARGINS *pMargins)
 
STDMETHOD() GetThemeFont (HDC hDC, int iStateId, int iPropId, LOGFONTW *pFont)
 
 STDMETHOD_ (COLORREF, GetThemeSysColor)(INT iColorId)
 
 STDMETHOD_ (int, GetThemeSysSize)(int iSizeId)
 
 STDMETHOD_ (void, SetActiveTheme)(LPCWSTR pszClassList
 

Protected Attributes

SIZE m_BitmapSize
 
- Protected Attributes inherited from CUIFButton
UINT m_uButtonStatus
 
LPWSTR m_pszButtonText
 
CUIFIcon m_ButtonIcon
 
DWORD m_dwUnknown9
 
HBITMAP m_hbmButton1
 
HBITMAP m_hbmButton2
 
BOOL m_bPressed
 
SIZE m_IconSize
 
SIZE m_TextSize
 
- Protected Attributes inherited from CUIFObject
CUIFObjectm_pParent
 
CUIFWindowm_pWindow
 
CUIFSchemem_pScheme
 
CUIFObjectArray m_ObjectArray
 
DWORD m_nObjectID
 
DWORD m_style
 
RECT m_rc
 
BOOL m_bEnable
 
BOOL m_bVisible
 
HFONT m_hFont
 
BOOL m_bHasCustomFont
 
LPWSTR m_pszToolTip
 
DWORD m_dwUnknown4 [2]
 

Additional Inherited Members

- Public Attributes inherited from CUIFButton
LONG y override
 
- Public Attributes inherited from CUIFObject
LONG y
 
LPCRECT prc
 
WPARAM wParam
 
WPARAM LPARAM lParam
 
- Public Attributes inherited from CUIFTheme
LPCWSTR m_pszClassList
 
INT m_iPartId
 
INT m_iStateId
 
HTHEME m_hTheme
 
INT iPartId
 
INT INT iStateId
 
- Static Public Attributes inherited from CUIFTheme
static HINSTANCE s_hUXTHEME = NULL
 
static FN_OpenThemeData s_fnOpenThemeData = NULL
 
static FN_CloseThemeData s_fnCloseThemeData = NULL
 
static FN_DrawThemeBackground s_fnDrawThemeBackground = NULL
 
static FN_DrawThemeParentBackground s_fnDrawThemeParentBackground = NULL
 
static FN_DrawThemeText s_fnDrawThemeText = NULL
 
static FN_DrawThemeIcon s_fnDrawThemeIcon = NULL
 
static FN_GetThemeBackgroundExtent s_fnGetThemeBackgroundExtent = NULL
 
static FN_GetThemeBackgroundContentRect s_fnGetThemeBackgroundContentRect = NULL
 
static FN_GetThemeTextExtent s_fnGetThemeTextExtent = NULL
 
static FN_GetThemePartSize s_fnGetThemePartSize = NULL
 
static FN_DrawThemeEdge s_fnDrawThemeEdge = NULL
 
static FN_GetThemeColor s_fnGetThemeColor = NULL
 
static FN_GetThemeMargins s_fnGetThemeMargins = NULL
 
static FN_GetThemeFont s_fnGetThemeFont = NULL
 
static FN_GetThemeSysColor s_fnGetThemeSysColor = NULL
 
static FN_GetThemeSysSize s_fnGetThemeSysSize = NULL
 
- Protected Member Functions inherited from CUIFButton
void DrawBitmapProc (HDC hDC, LPCRECT prc, BOOL bPressed)
 
void DrawEdgeProc (HDC hDC, LPCRECT prc, BOOL bPressed)
 
void DrawIconProc (HDC hDC, LPRECT prc, BOOL bPressed)
 
void DrawTextProc (HDC hDC, LPCRECT prc, BOOL bPressed)
 

Detailed Description

Definition at line 856 of file cicuif.h.

Constructor & Destructor Documentation

◆ CUIFButton2()

CUIFButton2::CUIFButton2 ( CUIFObject pParent,
DWORD  nObjectID,
LPCRECT  prc,
DWORD  style 
)

Definition at line 3098 of file cicuif.cpp.

3102 : CUIFButton(pParent, nObjectID, prc, style)
3103{
3104 m_iStateId = 0;
3106 m_pszClassList = L"TOOLBAR";
3107}
Arabic default style
Definition: afstyles.h:94
LPCRECT prc
Definition: cicuif.h:230
LPCWSTR m_pszClassList
Definition: cicuif.h:90
INT m_iStateId
Definition: cicuif.h:92
INT m_iPartId
Definition: cicuif.h:91
FxObject * pParent
Definition: fxdpcapi.cpp:86
#define L(x)
Definition: ntvdm.h:50
@ BP_PUSHBUTTON
Definition: vsstyle.h:74

◆ ~CUIFButton2()

CUIFButton2::~CUIFButton2 ( )
override

Definition at line 3109 of file cicuif.cpp.

3110{
3112}
HRESULT CloseThemeData()
Definition: cicuif.cpp:84

Member Function Documentation

◆ MakeDrawFlag()

DWORD CUIFButton2::MakeDrawFlag ( )

Definition at line 3114 of file cicuif.cpp.

3115{
3116 DWORD dwDrawFlags = 0;
3117 if (m_bPressed)
3118 dwDrawFlags |= UIF_DRAW_PRESSED;
3119 if (m_uButtonStatus == 1)
3120 dwDrawFlags |= 0x2;
3121 else if (2 <= m_uButtonStatus && m_uButtonStatus <= 3)
3122 dwDrawFlags |= 0x1;
3123 if (!m_bEnable)
3124 dwDrawFlags |= UIF_DRAW_DISABLED;
3125 return dwDrawFlags;
3126}
@ UIF_DRAW_PRESSED
Definition: cicuif.h:411
@ UIF_DRAW_DISABLED
Definition: cicuif.h:412
BOOL m_bPressed
Definition: cicuif.h:825
UINT m_uButtonStatus
Definition: cicuif.h:819
BOOL m_bEnable
Definition: cicuif.h:190
unsigned long DWORD
Definition: ntddk_ex.h:95

◆ STDMETHOD_() [1/2]

CUIFButton2::STDMETHOD_ ( BOOL  ,
OnPaintTheme   
)
override

◆ STDMETHOD_() [2/2]

CUIFButton2::STDMETHOD_ ( void  ,
OnPaintNoTheme   
)
override

Member Data Documentation

◆ m_BitmapSize

SIZE CUIFButton2::m_BitmapSize
protected

Definition at line 859 of file cicuif.h.


The documentation for this class was generated from the following files: