ReactOS 0.4.15-dev-7998-gdb93cb1
CUIFButton Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFButton:
Collaboration diagram for CUIFButton:

Public Member Functions

 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

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
 

Protected Member Functions

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

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]
 

Friends

class CUIFToolbarButton
 

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
 

Detailed Description

Definition at line 816 of file cicuif.h.

Constructor & Destructor Documentation

◆ CUIFButton()

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

Definition at line 2702 of file cicuif.cpp.

2706 : CUIFObject(pParent, nObjectID, prc, style)
2707{
2710 m_dwUnknown9 = 0;
2711 m_uButtonStatus = 0;
2712 m_bPressed = FALSE;
2716}
Arabic default style
Definition: afstyles.h:94
DWORD m_dwUnknown9
Definition: cicuif.h:822
CUIFIcon m_ButtonIcon
Definition: cicuif.h:821
BOOL m_bPressed
Definition: cicuif.h:825
UINT m_uButtonStatus
Definition: cicuif.h:819
LPWSTR m_pszButtonText
Definition: cicuif.h:820
HBITMAP m_hbmButton2
Definition: cicuif.h:824
HBITMAP m_hbmButton1
Definition: cicuif.h:823
HICON m_hIcon
Definition: cicuif.h:335
HIMAGELIST m_hImageList
Definition: cicuif.h:336
LPCRECT prc
Definition: cicuif.h:230
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
FxObject * pParent
Definition: fxdpcapi.cpp:86

◆ ~CUIFButton()

CUIFButton::~CUIFButton ( )
override

Definition at line 2718 of file cicuif.cpp.

2719{
2720 if (m_pszButtonText)
2721 {
2722 delete[] m_pszButtonText;
2724 }
2725
2728}
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928

Member Function Documentation

◆ DrawBitmapProc()

void CUIFButton::DrawBitmapProc ( HDC  hDC,
LPCRECT  prc,
BOOL  bPressed 
)
protected

Definition at line 2731 of file cicuif.cpp.

2732{
2735 if (m_hbmButton2)
2736 {
2738 (HBRUSH)UlongToHandle(COLOR_BTNFACE + 1), 0, 0);
2739 ::DrawState(hDC, NULL, NULL, (LPARAM)hbmMask, 0,
2740 prc->left + bPressed, prc->top + bPressed,
2741 width - bPressed, height - bPressed,
2743 ::DeleteObject(hbmMask);
2744 }
2745 else
2746 {
2748 prc->left + bPressed, prc->top + bPressed,
2749 width - bPressed, height - bPressed,
2751 }
2752}
static HDC hDC
Definition: 3dtext.c:33
#define UlongToHandle(ul)
Definition: basetsd.h:97
HBITMAP cicCreateMaskBmp(LPCRECT prc, HBITMAP hbm1, HBITMAP hbm2, HBRUSH hbr, COLORREF rgbColor, COLORREF rgbBack)
Definition: cicuif.cpp:1342
RECT m_rc
Definition: cicuif.h:189
BOOL m_bEnable
Definition: cicuif.h:190
pKey DeleteObject()
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLint GLint GLsizei width
Definition: gl.h:1546
static HBITMAP
Definition: button.c:44
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306
int32_t INT
Definition: typedefs.h:58
LONG_PTR LPARAM
Definition: windef.h:208
#define DrawState
Definition: winuser.h:5770
#define DSS_DISABLED
Definition: winuser.h:519
#define DST_BITMAP
Definition: winuser.h:516
#define DSS_MONO
Definition: winuser.h:521
#define COLOR_BTNFACE
Definition: winuser.h:928

◆ DrawEdgeProc()

void CUIFButton::DrawEdgeProc ( HDC  hDC,
LPCRECT  prc,
BOOL  bPressed 
)
protected

Definition at line 2755 of file cicuif.cpp.

2756{
2757 RECT rc = *prc;
2758 if (bPressed)
2760 else
2761 ::DrawEdge(hDC, &rc, BDR_RAISEDINNER, BF_RECT);
2762}
#define BDR_SUNKENOUTER
Definition: winuser.h:443
BOOL WINAPI DrawEdge(_In_ HDC, _Inout_ LPRECT, _In_ UINT, _In_ UINT)
#define BDR_RAISEDINNER
Definition: winuser.h:444
#define BF_RECT
Definition: winuser.h:462

◆ DrawIconProc()

void CUIFButton::DrawIconProc ( HDC  hDC,
LPRECT  prc,
BOOL  bPressed 
)
protected

Definition at line 2764 of file cicuif.cpp.

2765{
2766 INT width = prc->right - prc->left;
2767 INT height = prc->bottom - prc->top;
2768 RECT rc = { 0, 0, width, height };
2769
2770 HDC hMemDC = ::CreateCompatibleDC(hDC);
2771 if (!hMemDC)
2772 return;
2773
2775 if (!hbmMem)
2776 {
2777 ::DeleteDC(hMemDC);
2778 return;
2779 }
2780
2781 HGDIOBJ hbmOld = ::SelectObject(hMemDC, hbmMem);
2782 if (m_bEnable)
2783 {
2784 ::BitBlt(hMemDC, rc.left, rc.top, width, height, hDC, prc->left, prc->top, SRCCOPY);
2785 }
2786 else
2787 {
2788 HBRUSH hbrWhite = (HBRUSH)::GetStockObject(WHITE_BRUSH);
2789 ::FillRect(hMemDC, &rc, hbrWhite);
2790 }
2791
2793 {
2794 ::DrawIconEx(hMemDC,
2795 2 + bPressed, 2 + bPressed,
2797 width - 4, height - 4,
2798 0, NULL, DI_NORMAL);
2799 }
2800 else
2801 {
2802 ::DrawIconEx(hMemDC,
2803 (width - 16) / 2 + bPressed,
2804 (height - 16) / 2 + bPressed,
2806 16, 16,
2807 0, NULL, DI_NORMAL);
2808 }
2809
2810 ::SelectObject(hMemDC, hbmOld);
2811 ::DrawState(hDC, NULL, NULL, (LPARAM)hbmMem, 0,
2812 prc->left, prc->top, width, height,
2814 ::DeleteObject(hbmMem);
2815 ::DeleteDC(hMemDC);
2816}
@ UIF_BUTTON_LARGE_ICON
Definition: cicuif.h:812
DWORD m_style
Definition: cicuif.h:188
static VOID BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
Definition: common.c:57
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI GetStockObject(_In_ int)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1539
#define DI_NORMAL
Definition: wingdi.h:72
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
#define SRCCOPY
Definition: wingdi.h:333
#define WHITE_BRUSH
Definition: wingdi.h:902
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
int WINAPI FillRect(HDC, LPCRECT, HBRUSH)
BOOL WINAPI DeleteDC(_In_ HDC)
BOOL WINAPI DrawIconEx(_In_ HDC, _In_ int, _In_ int, _In_ HICON, _In_ int, _In_ int, _In_ UINT, _In_opt_ HBRUSH, _In_ UINT)
Definition: cursoricon.c:2059

◆ DrawTextProc()

void CUIFButton::DrawTextProc ( HDC  hDC,
LPCRECT  prc,
BOOL  bPressed 
)
protected

Definition at line 2819 of file cicuif.cpp.

2820{
2821 if (!m_pszButtonText)
2822 return;
2823
2824 HGDIOBJ hFontOld = ::SelectObject(hDC, m_hFont);
2826 SIZE textSize;
2828
2829 INT xText, yText;
2831 xText = (m_rc.right - m_rc.left - textSize.cx) / 2;
2833 xText = m_rc.right - m_rc.left - textSize.cx;
2834 else
2835 xText = 0;
2836
2838 yText = (m_rc.bottom - m_rc.top - textSize.cy) / 2;
2840 yText = m_rc.bottom - m_rc.top - textSize.cy;
2841 else
2842 yText = 0;
2843
2845
2846 if (m_bEnable)
2847 {
2850 xText + prc->left + bPressed, yText + prc->top + bPressed,
2853 }
2854 else
2855 {
2858 xText + prc->left + bPressed + 1, yText + prc->top + bPressed + 1,
2861
2864 xText + prc->left + bPressed, yText + prc->top + bPressed,
2867 }
2868
2869 ::SelectObject(hDC, hFontOld);
2870}
@ UIF_BUTTON_V_ALIGN_BOTTOM
Definition: cicuif.h:810
@ UIF_BUTTON_V_ALIGN_MIDDLE
Definition: cicuif.h:809
@ UIF_BUTTON_V_ALIGN_MASK
Definition: cicuif.h:811
@ UIF_BUTTON_H_ALIGN_CENTER
Definition: cicuif.h:805
@ UIF_BUTTON_H_ALIGN_RIGHT
Definition: cicuif.h:806
@ UIF_BUTTON_H_ALIGN_MASK
Definition: cicuif.h:807
HFONT m_hFont
Definition: cicuif.h:192
#define lstrlenW
Definition: compat.h:750
if(dx< 0)
Definition: linetemp.h:194
LONG cx
Definition: kdterminal.h:27
LONG cy
Definition: kdterminal.h:28
#define TRANSPARENT
Definition: wingdi.h:950
#define ETO_CLIPPED
Definition: wingdi.h:648
BOOL WINAPI ExtTextOutW(_In_ HDC hdc, _In_ int x, _In_ int y, _In_ UINT options, _In_opt_ const RECT *lprect, _In_reads_opt_(c) LPCWSTR lpString, _In_ UINT c, _In_reads_opt_(c) const INT *lpDx)
int WINAPI SetBkMode(_In_ HDC, _In_ int)
Definition: dc.c:1056
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918
BOOL WINAPI GetTextExtentPoint32W(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE psizl)
DWORD WINAPI GetSysColor(_In_ int)
#define COLOR_BTNTEXT
Definition: winuser.h:933
_In_ int cchText
Definition: winuser.h:4465
#define COLOR_BTNSHADOW
Definition: winuser.h:930
#define COLOR_BTNHILIGHT
Definition: winuser.h:938

◆ GetIconSize()

void CUIFButton::GetIconSize ( HICON  hIcon,
LPSIZE  pSize 
)

Definition at line 2885 of file cicuif.cpp.

2886{
2889 {
2890 BITMAP bm;
2891 ::GetObject(IconInfo.hbmColor, sizeof(bm), &bm);
2894 pSize->cx = bm.bmWidth;
2895 pSize->cy = bm.bmHeight;
2896 }
2897 else
2898 {
2901 }
2902}
_Out_opt_ PICONINFO IconInfo
Definition: ntuser.h:2294
HICON hIcon
Definition: msconfig.c:44
Definition: bl.h:1331
HBITMAP hbmColor
Definition: winuser.h:3127
HBITMAP hbmMask
Definition: winuser.h:3126
LONG cx
Definition: windef.h:334
LONG cy
Definition: windef.h:335
#define GetObject
Definition: wingdi.h:4468
BOOL WINAPI GetIconInfo(_In_ HICON, _Out_ PICONINFO)
Definition: cursoricon.c:2076
#define SM_CYSMICON
Definition: winuser.h:1013
#define SM_CXSMICON
Definition: winuser.h:1012
int WINAPI GetSystemMetrics(_In_ int)

Referenced by SetIcon().

◆ GetTextSize()

void CUIFButton::GetTextSize ( LPCWSTR  pszText,
LPSIZE  pSize 
)

Definition at line 2905 of file cicuif.cpp.

2906{
2907 HDC hDC = ::GetDC(NULL);
2908 INT cchText = lstrlenW(pszText);
2909 HGDIOBJ hFontOld = ::SelectObject(hDC, m_hFont);
2910
2912 {
2913 RECT rc;
2914 GetThemeTextExtent(hDC, 0, pszText, cchText, 0, NULL, &rc);
2915 pSize->cx = rc.right;
2916 pSize->cy = rc.bottom;
2917 }
2918 else
2919 {
2920 ::GetTextExtentPoint32W(hDC, pszText, cchText, pSize);
2921 }
2922
2924 {
2925 INT tmp = pSize->cx;
2926 pSize->cx = pSize->cy;
2927 pSize->cy = tmp;
2928 }
2929
2930 ::SelectObject(hDC, hFontOld);
2932}
@ UIF_BUTTON_VERTICAL
Definition: cicuif.h:813
CUIFWindow * m_pWindow
Definition: cicuif.h:184
BOOL m_bHasCustomFont
Definition: cicuif.h:193
STDMETHOD() GetThemeTextExtent(HDC hDC, int iStateId, LPCWSTR pszText, int cchCharCount, DWORD dwTextFlags, LPCRECT pBoundingRect, LPRECT pExtentRect)
Definition: cicuif.cpp:146
HRESULT EnsureThemeData(HWND hWnd)
Definition: cicuif.cpp:77
#define SUCCEEDED(hr)
Definition: intsafe.h:50
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HDC WINAPI GetDC(_In_opt_ HWND)

Referenced by SetText().

◆ SetIcon()

void CUIFButton::SetIcon ( HICON  hIcon)

Definition at line 3050 of file cicuif.cpp.

3051{
3053
3056 else
3057 m_IconSize.cx = m_IconSize.cy = 0;
3058
3059 CallOnPaint();
3060}
SIZE m_IconSize
Definition: cicuif.h:826
void GetIconSize(HICON hIcon, LPSIZE pSize)
Definition: cicuif.cpp:2885

Referenced by CUIFToolbarButton::SetIcon().

◆ SetText()

void CUIFButton::SetText ( LPCWSTR  pszText)

Definition at line 3071 of file cicuif.cpp.

3072{
3073 if (m_pszButtonText)
3074 {
3075 delete[] m_pszButtonText;
3077 }
3078
3079 m_TextSize.cx = m_TextSize.cy = 0;
3080
3081 if (pszText)
3082 {
3083 INT cch = lstrlenW(pszText);
3084 m_pszButtonText = new(cicNoThrow) WCHAR[cch + 1];
3085 if (!m_pszButtonText)
3086 return;
3087
3088 lstrcpynW(m_pszButtonText, pszText, cch + 1);
3090 }
3091
3092 CallOnPaint();
3093}
#define cicNoThrow
Definition: cicbase.h:34
SIZE m_TextSize
Definition: cicuif.h:827
void GetTextSize(LPCWSTR pszText, LPSIZE pSize)
Definition: cicuif.cpp:2905
#define lstrcpynW
Definition: compat.h:738
static DWORD DWORD void LPSTR DWORD cch
Definition: str.c:202
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by CUIFBalloonWindow::AddButton(), and CUIFToolbarMenuButton::CUIFToolbarMenuButton().

◆ STDMETHOD_() [1/7]

CUIFButton::STDMETHOD_ ( void  ,
Enable   
)
override

◆ STDMETHOD_() [2/7]

CUIFButton::STDMETHOD_ ( void  ,
OnLButtonDown   
)

◆ STDMETHOD_() [3/7]

CUIFButton::STDMETHOD_ ( void  ,
OnLButtonUp   
)

◆ STDMETHOD_() [4/7]

CUIFButton::STDMETHOD_ ( void  ,
OnMouseIn   
)

◆ STDMETHOD_() [5/7]

CUIFButton::STDMETHOD_ ( void  ,
OnMouseOut   
)

◆ STDMETHOD_() [6/7]

CUIFButton::STDMETHOD_ ( void  ,
OnPaintNoTheme   
)
override

◆ STDMETHOD_() [7/7]

CUIFButton::STDMETHOD_ ( void  ,
SetStatus   
)

Friends And Related Function Documentation

◆ CUIFToolbarButton

friend class CUIFToolbarButton
friend

Definition at line 828 of file cicuif.h.

Member Data Documentation

◆ m_bPressed

BOOL CUIFButton::m_bPressed
protected

Definition at line 825 of file cicuif.h.

Referenced by CUIFButton(), and CUIFButton2::MakeDrawFlag().

◆ m_ButtonIcon

CUIFIcon CUIFButton::m_ButtonIcon
protected

Definition at line 821 of file cicuif.h.

Referenced by CUIFButton(), DrawIconProc(), CUIFToolbarButton::GetIcon(), SetIcon(), and ~CUIFButton().

◆ m_dwUnknown9

DWORD CUIFButton::m_dwUnknown9
protected

Definition at line 822 of file cicuif.h.

Referenced by CUIFButton().

◆ m_hbmButton1

HBITMAP CUIFButton::m_hbmButton1
protected

Definition at line 823 of file cicuif.h.

Referenced by CUIFButton(), and DrawBitmapProc().

◆ m_hbmButton2

HBITMAP CUIFButton::m_hbmButton2
protected

Definition at line 824 of file cicuif.h.

Referenced by CUIFButton(), and DrawBitmapProc().

◆ m_IconSize

SIZE CUIFButton::m_IconSize
protected

Definition at line 826 of file cicuif.h.

Referenced by SetIcon().

◆ m_pszButtonText

LPWSTR CUIFButton::m_pszButtonText
protected

◆ m_TextSize

SIZE CUIFButton::m_TextSize
protected

Definition at line 827 of file cicuif.h.

Referenced by SetText().

◆ m_uButtonStatus

UINT CUIFButton::m_uButtonStatus
protected

Definition at line 819 of file cicuif.h.

Referenced by CUIFButton(), and CUIFButton2::MakeDrawFlag().

◆ override

LONG y CUIFButton::override

Definition at line 846 of file cicuif.h.


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