ReactOS 0.4.15-dev-8021-g7ce96fd
CUIFBalloonButton Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFBalloonButton:
Collaboration diagram for CUIFBalloonButton:

Public Member Functions

 CUIFBalloonButton (CUIFObject *pParent, DWORD nObjectID, LPCRECT prc, DWORD style)
 
 STDMETHOD_ (void, OnPaint)(HDC hDC) override
 
void DrawTextProc (HDC hDC, LPCRECT prc, BOOL bPressed)
 
- 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

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

Friends

class CUIFBalloonWindow
 

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 990 of file cicuif.h.

Constructor & Destructor Documentation

◆ CUIFBalloonButton()

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

Definition at line 3808 of file cicuif.cpp.

3812 : CUIFButton(pParent, nObjectID, prc, style)
3813{
3814 m_nCommandID = 0;
3815}
Arabic default style
Definition: afstyles.h:94
UINT m_nCommandID
Definition: cicuif.h:993
LPCRECT prc
Definition: cicuif.h:230
FxObject * pParent
Definition: fxdpcapi.cpp:86

Member Function Documentation

◆ DrawTextProc()

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

Definition at line 3887 of file cicuif.cpp.

3888{
3889 if (!m_pszButtonText)
3890 return;
3891
3893
3895 uFlags |= DT_CENTER;
3897 uFlags |= DT_RIGHT;
3898
3900 uFlags |= DT_VCENTER;
3902 uFlags |= DT_BOTTOM;
3903
3905 INT nOldBkMode = ::SetBkMode(hDC, TRANSPARENT);
3906
3907 RECT rc = *prc;
3908 if (bPressed)
3909 ::OffsetRect(&rc, 1, 1);
3910
3911 HGDIOBJ hFontOld = ::SelectObject(hDC, m_hFont);
3913 ::SelectObject(hDC, hFontOld);
3914
3915 ::SetBkMode(hDC, nOldBkMode);
3916 ::SetTextColor(hDC, rgbOldColor);
3917}
static HDC hDC
Definition: 3dtext.c:33
@ 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
LPWSTR m_pszButtonText
Definition: cicuif.h:820
DWORD m_style
Definition: cicuif.h:188
HFONT m_hFont
Definition: cicuif.h:192
UINT uFlags
Definition: api.c:59
unsigned int UINT
Definition: ndis.h:50
INT WINAPI DrawTextW(HDC hdc, LPCWSTR str, INT count, LPRECT rect, UINT flags)
Definition: defwnd.c:16
int32_t INT
Definition: typedefs.h:58
DWORD COLORREF
Definition: windef.h:300
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1539
#define TRANSPARENT
Definition: wingdi.h:950
int WINAPI SetBkMode(_In_ HDC, _In_ int)
Definition: dc.c:1056
COLORREF WINAPI SetTextColor(_In_ HDC, _In_ COLORREF)
Definition: text.c:918
DWORD WINAPI GetSysColor(_In_ int)
#define COLOR_BTNTEXT
Definition: winuser.h:933
#define DT_CENTER
Definition: winuser.h:527
#define DT_SINGLELINE
Definition: winuser.h:540
#define DT_VCENTER
Definition: winuser.h:543
#define DT_BOTTOM
Definition: winuser.h:525
BOOL WINAPI OffsetRect(_Inout_ LPRECT, _In_ int, _In_ int)
#define DT_RIGHT
Definition: winuser.h:538

◆ STDMETHOD_()

CUIFBalloonButton::STDMETHOD_ ( void  ,
OnPaint   
)
override

Friends And Related Function Documentation

◆ CUIFBalloonWindow

friend class CUIFBalloonWindow
friend

Definition at line 994 of file cicuif.h.

Member Data Documentation

◆ m_nCommandID

UINT CUIFBalloonButton::m_nCommandID
protected

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