ReactOS 0.4.15-dev-8422-g6219a1a
CUIFToolbarButton Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFToolbarButton:
Collaboration diagram for CUIFToolbarButton:

Public Member Functions

 CUIFToolbarButton (CUIFObject *pParent, DWORD nObjectID, LPCRECT prc, DWORD style, DWORD dwToolbarButtonFlags, LPCWSTR pszUnknownText)
 
 ~CUIFToolbarButton () override
 
BOOL Init ()
 
HICON GetIcon ()
 
void SetIcon (HICON hIcon)
 
 STDMETHOD_ (void, ClearWndObj)() override
 
 STDMETHOD_ (void, DetachWndObj)() override
 
 STDMETHOD_ (void, Enable)(BOOL bEnable) override
 
 STDMETHOD_ (LPCWSTR, GetToolTip)() override
 
 STDMETHOD_ (void, SetActiveTheme)(LPCWSTR pszClassList
 
 STDMETHOD_ (void, SetFont)(HFONT hFont) override
 
 STDMETHOD_ (void, SetRect)(LPCRECT prc) override
 
 STDMETHOD_ (void, SetToolTip)(LPCWSTR pszToolTip) override
 
 STDMETHOD_ (void, OnUnknownMouse0)()
 
 STDMETHOD_ (void, OnLeftClick)()
 
 STDMETHOD_ (void, OnRightClick)()
 
- 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
 

Public Attributes

CUIFToolbarButtonElementm_pToolbarButtonElement
 
CUIFToolbarMenuButtonm_pToolbarMenuButton
 
DWORD m_dwToolbarButtonFlags
 
LPCWSTR m_pszUnknownText
 
INT iPartId
 
INT INT iStateId 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
 

Additional Inherited Members

- 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 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]
 

Detailed Description

Definition at line 900 of file cicuif.h.

Constructor & Destructor Documentation

◆ CUIFToolbarButton()

CUIFToolbarButton::CUIFToolbarButton ( CUIFObject pParent,
DWORD  nObjectID,
LPCRECT  prc,
DWORD  style,
DWORD  dwToolbarButtonFlags,
LPCWSTR  pszUnknownText 
)

Definition at line 3462 of file cicuif.cpp.

3468 : CUIFObject(pParent, nObjectID, prc, style)
3469{
3470 m_dwToolbarButtonFlags = dwToolbarButtonFlags;
3471 m_pszUnknownText = pszUnknownText;
3472}
Arabic default style
Definition: afstyles.h:94
LPCRECT prc
Definition: cicuif.h:230
DWORD m_dwToolbarButtonFlags
Definition: cicuif.h:905
LPCWSTR m_pszUnknownText
Definition: cicuif.h:906
FxObject * pParent
Definition: fxdpcapi.cpp:86

◆ ~CUIFToolbarButton()

CUIFToolbarButton::~CUIFToolbarButton ( )
inlineoverride

Definition at line 915 of file cicuif.h.

915{ }

Member Function Documentation

◆ GetIcon()

HICON CUIFToolbarButton::GetIcon ( )

Definition at line 3520 of file cicuif.cpp.

3521{
3523}
CUIFIcon m_ButtonIcon
Definition: cicuif.h:821
HICON m_hIcon
Definition: cicuif.h:335
CUIFToolbarButtonElement * m_pToolbarButtonElement
Definition: cicuif.h:903

Referenced by CCompFinalizeButton::~CCompFinalizeButton().

◆ Init()

BOOL CUIFToolbarButton::Init ( )

Definition at line 3474 of file cicuif.cpp.

3475{
3476 RECT rc1, rc2;
3477 rc1 = rc2 = m_rc;
3478
3479 if ((m_dwToolbarButtonFlags & 0x30000) == 0x30000)
3480 {
3481 rc1.right -= 12;
3482 rc2.left = rc1.right + 1;
3483 }
3484
3486 if (m_dwToolbarButtonFlags & 0x2000)
3487 style |= 0x10;
3488 if (m_dwToolbarButtonFlags & 0x80000)
3492 return FALSE;
3493
3494 m_pToolbarButtonElement->Initialize();
3495 AddUIObj(m_pToolbarButtonElement);
3496
3497 if (!m_bEnable)
3499
3500 if ((m_dwToolbarButtonFlags & 0x30000) == 0x30000)
3501 {
3503 if (m_dwToolbarButtonFlags & 0x80000)
3505
3508 return FALSE;
3509
3510 m_pToolbarMenuButton->Initialize();
3511 AddUIObj(m_pToolbarMenuButton);
3512
3513 if (!m_bEnable)
3514 m_pToolbarMenuButton->Enable(FALSE);
3515 }
3516
3517 return TRUE;
3518}
#define cicNoThrow
Definition: cicbase.h:34
@ UIF_BUTTON_V_ALIGN_MIDDLE
Definition: cicuif.h:809
@ UIF_BUTTON_H_ALIGN_CENTER
Definition: cicuif.h:805
@ UIF_BUTTON_VERTICAL
Definition: cicuif.h:813
@ UIF_BUTTON_LARGE_ICON
Definition: cicuif.h:812
RECT m_rc
Definition: cicuif.h:189
BOOL m_bEnable
Definition: cicuif.h:190
DWORD m_nObjectID
Definition: cicuif.h:187
CUIFToolbarMenuButton * m_pToolbarMenuButton
Definition: cicuif.h:904
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
static const WCHAR rc2[]
Definition: oid.c:1216
unsigned long DWORD
Definition: ntddk_ex.h:95
LONG right
Definition: windef.h:308

Referenced by CCompButtonFrameWindow::Init(), and CDefCompFrameWindow::Init().

◆ SetIcon()

void CUIFToolbarButton::SetIcon ( HICON  hIcon)

Definition at line 3525 of file cicuif.cpp.

3526{
3528}
void SetIcon(HICON hIcon)
Definition: cicuif.cpp:3050
HICON hIcon
Definition: msconfig.c:44

Referenced by CCompButtonFrameWindow::Init(), CDefCompFrameWindow::Init(), and CCompFinalizeButton::~CCompFinalizeButton().

◆ STDMETHOD_() [1/11]

CUIFToolbarButton::STDMETHOD_ ( LPCWSTR  ,
GetToolTip   
)
override

◆ STDMETHOD_() [2/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
ClearWndObj   
)
override

◆ STDMETHOD_() [3/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
DetachWndObj   
)
override

◆ STDMETHOD_() [4/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
Enable   
)
override

◆ STDMETHOD_() [5/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
OnLeftClick   
)
inline

Definition at line 931 of file cicuif.h.

931{ }

◆ STDMETHOD_() [6/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
OnRightClick   
)
inline

Definition at line 932 of file cicuif.h.

932{ }

◆ STDMETHOD_() [7/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
OnUnknownMouse0   
)
inline

Definition at line 930 of file cicuif.h.

930{ }

◆ STDMETHOD_() [8/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
SetActiveTheme   
)

◆ STDMETHOD_() [9/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
SetFont   
)
override

◆ STDMETHOD_() [10/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
SetRect   
)
override

◆ STDMETHOD_() [11/11]

CUIFToolbarButton::STDMETHOD_ ( void  ,
SetToolTip   
)
override

Member Data Documentation

◆ iPartId

INT CUIFToolbarButton::iPartId

Definition at line 925 of file cicuif.h.

◆ m_dwToolbarButtonFlags

DWORD CUIFToolbarButton::m_dwToolbarButtonFlags

Definition at line 905 of file cicuif.h.

Referenced by CUIFToolbarButton(), and Init().

◆ m_pszUnknownText

LPCWSTR CUIFToolbarButton::m_pszUnknownText

Definition at line 906 of file cicuif.h.

Referenced by CUIFToolbarButton().

◆ m_pToolbarButtonElement

CUIFToolbarButtonElement* CUIFToolbarButton::m_pToolbarButtonElement

Definition at line 903 of file cicuif.h.

Referenced by GetIcon(), Init(), and SetIcon().

◆ m_pToolbarMenuButton

CUIFToolbarMenuButton* CUIFToolbarButton::m_pToolbarMenuButton

Definition at line 904 of file cicuif.h.

Referenced by Init().

◆ override

INT INT iStateId CUIFToolbarButton::override

Definition at line 925 of file cicuif.h.


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