ReactOS 0.4.16-dev-252-g9ccafe8
CUTBMenuItem Class Reference
Inheritance diagram for CUTBMenuItem:
Collaboration diagram for CUTBMenuItem:

Public Member Functions

 CUTBMenuItem (CUTBMenuWnd *pMenuUI)
 
 ~CUTBMenuItem () override
 
CUIFMenuItemGetMenuItem ()
 
 STDMETHOD_ (BOOL, DoAccDefaultAction)() override
 
 STDMETHOD_ (BOOL, DoAccDefaultActionReal)() override
 
 STDMETHOD_ (BSTR, GetAccDefaultAction)() override
 
 STDMETHOD_ (void, GetAccLocation)(LPRECT lprc) override
 
 STDMETHOD_ (BSTR, GetAccName)() override
 
 STDMETHOD_ (INT, GetAccRole)() override
 
- Public Member Functions inherited from CTipbarAccItem
 CTipbarAccItem ()
 
virtual ~CTipbarAccItem ()
 
 STDMETHOD_ (BSTR, GetAccName)()
 
 STDMETHOD_ (BSTR, GetAccValue)()
 
 STDMETHOD_ (INT, GetAccRole)()
 
 STDMETHOD_ (INT, GetAccState)()
 
 STDMETHOD_ (void, GetAccLocation)(LPRECT lprc)
 
 STDMETHOD_ (BSTR, GetAccDefaultAction)()
 
 STDMETHOD_ (BOOL, DoAccDefaultAction)()
 
 STDMETHOD_ (BOOL, DoAccDefaultActionReal)()
 
- Public Member Functions inherited from CUIFMenuItem
 CUIFMenuItem (CUIFMenu *pMenu, BOOL bDisabled=FALSE)
 
 ~CUIFMenuItem () override
 
BOOL Init (UINT nMenuItemID, LPCWSTR pszText)
 
BOOL IsCheck ()
 
void Check (BOOL bChecked)
 
void Gray (BOOL bGrayed)
 
void SetBitmap (HBITMAP hbmColor)
 
void SetBitmapMask (HBITMAP hbmMask)
 
void SetSub (CUIFMenu *pSubMenu)
 
void ShowSubPopup ()
 
 STDMETHOD_ (void, OnLButtonUp)(LONG x
 
 STDMETHOD_ (void, OnMouseIn)(LONG x
 
 STDMETHOD_ (void, OnPaint)(HDC hDC) override
 
 STDMETHOD_ (void, OnTimer)() override
 
 STDMETHOD_ (void, InitMenuExtent)()
 
 STDMETHOD_ (void, OnPaintDef)(HDC hDC)
 
 STDMETHOD_ (void, OnPaintO10)(HDC hDC)
 
 STDMETHOD_ (void, OnUnknownMethod)()
 
- 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

CUTBMenuWndm_pMenuUI
 
- Protected Attributes inherited from CUIFMenuItem
UINT m_nMenuItemID
 
LPWSTR m_pszMenuItemLeft
 
UINT m_cchMenuItemLeft
 
LPWSTR m_pszMenuItemRight
 
UINT m_cchMenuItemRight
 
UINT m_nMenuItemVKey
 
UINT m_ichMenuItemPrefix
 
HBITMAP m_hbmColor
 
HBITMAP m_hbmMask
 
BOOL m_bMenuItemChecked
 
BOOL m_bMenuItemForceChecked
 
BOOL m_bMenuItemGrayed
 
BOOL m_bMenuItemDisabled
 
CUIFMenum_pMenu
 
CUIFMenum_pSubMenu
 
SIZE m_MenuLeftExtent
 
SIZE m_MenuRightExtent
 
- 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]
 

Friends

class CUTBMenuWnd
 

Additional Inherited Members

- Public Attributes inherited from CUIFMenuItem
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 CUIFMenuItem
void DrawArrow (HDC hDC, INT x, INT y)
 
void DrawBitmapProc (HDC hDC, INT xLeft, INT yTop)
 
void DrawCheck (HDC hDC, INT xLeft, INT yTop)
 
void DrawUnderline (HDC hDC, INT xText, INT yText, HBRUSH hbr)
 

Detailed Description

Definition at line 958 of file msutb.cpp.

Constructor & Destructor Documentation

◆ CUTBMenuItem()

CUTBMenuItem::CUTBMenuItem ( CUTBMenuWnd pMenuUI)

Definition at line 2709 of file msutb.cpp.

2710 : CUIFMenuItem(pMenuUI ? pMenuUI->GetMenu() : NULL)
2711{
2712 m_pMenuUI = pMenuUI;
2713}
CUTBMenuWnd * m_pMenuUI
Definition: msutb.cpp:961
CUIFMenu * GetMenu()
Definition: msutb.cpp:941
#define NULL
Definition: types.h:112

◆ ~CUTBMenuItem()

CUTBMenuItem::~CUTBMenuItem ( )
override

Definition at line 2715 of file msutb.cpp.

2716{
2717 if (m_hbmColor)
2718 {
2720 m_hbmColor = NULL;
2721 }
2722 if (m_hbmMask)
2723 {
2725 m_hbmMask = NULL;
2726 }
2727}
HBITMAP m_hbmMask
Definition: cicuif.h:744
HBITMAP m_hbmColor
Definition: cicuif.h:743
pKey DeleteObject()

Member Function Documentation

◆ GetMenuItem()

CUIFMenuItem * CUTBMenuItem::GetMenuItem ( )
inline

Definition at line 968 of file msutb.cpp.

969 {
970 return static_cast<CUIFMenuItem*>(this);
971 }

◆ STDMETHOD_() [1/6]

CUTBMenuItem::STDMETHOD_ ( BOOL  ,
DoAccDefaultAction   
)
override

◆ STDMETHOD_() [2/6]

CUTBMenuItem::STDMETHOD_ ( BOOL  ,
DoAccDefaultActionReal   
)
override

◆ STDMETHOD_() [3/6]

CUTBMenuItem::STDMETHOD_ ( BSTR  ,
GetAccDefaultAction   
)
override

◆ STDMETHOD_() [4/6]

CUTBMenuItem::STDMETHOD_ ( BSTR  ,
GetAccName   
)
override

◆ STDMETHOD_() [5/6]

CUTBMenuItem::STDMETHOD_ ( INT  ,
GetAccRole   
)
override

◆ STDMETHOD_() [6/6]

CUTBMenuItem::STDMETHOD_ ( void  ,
GetAccLocation   
)
override

Friends And Related Function Documentation

◆ CUTBMenuWnd

friend class CUTBMenuWnd
friend

Definition at line 962 of file msutb.cpp.

Member Data Documentation

◆ m_pMenuUI

CUTBMenuWnd* CUTBMenuItem::m_pMenuUI
protected

Definition at line 961 of file msutb.cpp.

Referenced by CUTBMenuItem().


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