ReactOS 0.4.15-dev-8390-g075894b
CUIFToolbarMenuButton Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFToolbarMenuButton:
Collaboration diagram for CUIFToolbarMenuButton:

Public Member Functions

 CUIFToolbarMenuButton (CUIFToolbarButton *pParent, DWORD nObjectID, LPCRECT prc, DWORD style)
 
 ~CUIFToolbarMenuButton () override
 
 STDMETHOD_ (void, OnLButtonUp)(LONG x
 
 STDMETHOD_ (BOOL, OnSetCursor)(UINT uMsg
 
- Public Member Functions inherited from CUIFButton2
 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
 

Public Attributes

CUIFToolbarButtonm_pToolbarButton
 
LONG y override
 
LONG x
 
LONG LONG y override
 
- 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
 

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 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)
 
- Protected Attributes inherited from CUIFButton2
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]
 

Detailed Description

Definition at line 872 of file cicuif.h.

Constructor & Destructor Documentation

◆ CUIFToolbarMenuButton()

CUIFToolbarMenuButton::CUIFToolbarMenuButton ( CUIFToolbarButton pParent,
DWORD  nObjectID,
LPCRECT  prc,
DWORD  style 
)

Definition at line 3388 of file cicuif.cpp.

3392 : CUIFButton2(pParent, nObjectID, prc, style)
3393{
3395
3396 HFONT hFont = ::CreateFontW(8, 8, 0, 0, FW_NORMAL, 0, 0, 0, SYMBOL_CHARSET,
3397 0, 0, 0, 0, L"Marlett");
3398 SetFont(hFont);
3399 SetText(L"u"); // downward triangle
3400}
Arabic default style
Definition: afstyles.h:94
HFONT hFont
Definition: main.c:53
void SetText(LPCWSTR pszText)
Definition: cicuif.cpp:3071
LPCRECT prc
Definition: cicuif.h:230
CUIFToolbarButton * m_pToolbarButton
Definition: cicuif.h:875
FxObject * pParent
Definition: fxdpcapi.cpp:86
static VOID SetFont(PMAP infoPtr, LPWSTR lpFontName)
Definition: map.c:220
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define L(x)
Definition: ntvdm.h:50
HFONT WINAPI CreateFontW(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCWSTR)
#define FW_NORMAL
Definition: wingdi.h:373
#define SYMBOL_CHARSET
Definition: wingdi.h:385

◆ ~CUIFToolbarMenuButton()

CUIFToolbarMenuButton::~CUIFToolbarMenuButton ( )
override

Definition at line 3402 of file cicuif.cpp.

3403{
3405 SetFont(NULL);
3406}
HFONT m_hFont
Definition: cicuif.h:192
#define NULL
Definition: types.h:112
pKey DeleteObject()

Member Function Documentation

◆ STDMETHOD_() [1/2]

CUIFToolbarMenuButton::STDMETHOD_ ( BOOL  ,
OnSetCursor   
)

◆ STDMETHOD_() [2/2]

CUIFToolbarMenuButton::STDMETHOD_ ( void  ,
OnLButtonUp   
)

Member Data Documentation

◆ m_pToolbarButton

CUIFToolbarButton* CUIFToolbarMenuButton::m_pToolbarButton

Definition at line 875 of file cicuif.h.

Referenced by CUIFToolbarMenuButton().

◆ override [1/2]

LONG y CUIFToolbarMenuButton::override

Definition at line 880 of file cicuif.h.

◆ override [2/2]

LONG LONG y CUIFToolbarMenuButton::override

Definition at line 881 of file cicuif.h.

◆ x

LONG CUIFToolbarMenuButton::x

Definition at line 881 of file cicuif.h.


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