ReactOS 0.4.15-dev-8428-g6910fa6
CUIFWindow Class Reference

#include <cicuif.h>

Inheritance diagram for CUIFWindow:
Collaboration diagram for CUIFWindow:

Public Types

enum  { POINTING_TIMER_ID = 0x7982 , USER_TIMER_ID = 0x5461 }
 

Public Member Functions

 operator HWND () const
 
 CUIFWindow (HINSTANCE hInst, DWORD style)
 
 ~CUIFWindow () override
 
 STDMETHOD_ (BOOL, Initialize)() override
 
 STDMETHOD_ (void, Show)(BOOL bVisible) override
 
 STDMETHOD_ (void, SetRect)(LPCRECT prc) override
 
 STDMETHOD_ (void, PaintObject)(HDC hDC
 
 STDMETHOD_ (void, RemoveUIObj)(CUIFObject *pRemove) override
 
void SetCaptureObject (CUIFObject *pCaptured)
 
void SetObjectPointed (CUIFObject *pPointed, POINT pt)
 
void CreateScheme ()
 
BOOL GetWorkArea (LPCRECT prcWnd, LPRECT prcWorkArea)
 
void AdjustWindowPosition ()
 
void SetBehindModal (CUIFWindow *pBehindModal)
 
void SetTimerObject (CUIFObject *pTimerObject, UINT uElapse)
 
 STDMETHOD_ (LPCTSTR, GetClassName)()
 
 STDMETHOD_ (LPCTSTR, GetWndTitle)()
 
 STDMETHOD_ (DWORD, GetWndStyle)()
 
 STDMETHOD_ (DWORD, GetWndStyleEx)()
 
 STDMETHOD_ (HWND, CreateWnd)(HWND hwndParent)
 
 STDMETHOD_ (void, Move)(INT x
 
 STDMETHOD_ (BOOL, AnimateWnd)(DWORD dwTime
 
 STDMETHOD_ (void, OnObjectMoved)(CUIFObject *pObject)
 
 STDMETHOD_ (void, OnMouseOutFromWindow)(LONG x
 
 STDMETHOD_ (LRESULT, OnDisplayChange)(HWND hWnd
 
 STDMETHOD_ (HRESULT, OnGetObject)(HWND hWnd
 
 STDMETHOD_ (LRESULT, WindowProc)(HWND hWnd
 
 STDMETHOD_ (BOOL, OnEraseBkGnd)(HWND hWnd
 
 STDMETHOD_ (void, OnThemeChanged)(HWND hWnd
 
 STDMETHOD_ (void, UpdateUI)(LPCRECT prc)
 
 STDMETHOD_ (void, SetCapture)(int)
 
 STDMETHOD_ (void, ModalMouseNotify)(UINT uMsg
 
 STDMETHOD_ (void, HandleMouseMsg)(UINT uMsg
 
 STDMETHOD_ (void, ClientRectToWindowRect)(LPRECT pRect)
 
 STDMETHOD_ (void, GetWindowFrameSize)(LPSIZE pSize)
 
- 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
 

Static Public Member Functions

static CUIFWindowGetThis (HWND hWnd)
 
static void SetThis (HWND hWnd, LONG_PTR dwNewLong)
 
static LRESULT CALLBACK WindowProcedure (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Public Attributes

LPCRECT prc override
 
INT y
 
INT INT nWidth
 
INT INT INT nHeight
 
DWORD dwFlags
 
LONG y
 
UINT uMsg
 
UINT WPARAM wParam
 
UINT WPARAM LPARAM lParam { return 0
 
WPARAM wParam
 
WPARAM LPARAM lParam
 
LONG x
 
LONG LONG y
 
- 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 Attributes

INT m_nLeft
 
INT m_nTop
 
INT m_nHeight
 
INT m_nWidth
 
HINSTANCE m_hInst
 
HWND m_hWnd
 
CUIFObjectm_pTimerObject
 
CUIFObjectm_pCaptured
 
CUIFObjectm_pPointed
 
BOOL m_bPointing
 
CUIFWindowm_pBehindModal
 
CUIFToolTipm_pToolTip
 
CUIFShadowm_pShadow
 
BOOL m_bShowShadow
 
- 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 CUIFObject
 
class CUIFShadow
 
class CUIFToolTip
 
class CUIFButton
 
class CUIFMenu
 

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

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
POINTING_TIMER_ID 
USER_TIMER_ID 

Definition at line 534 of file cicuif.h.

534{ POINTING_TIMER_ID = 0x7982, USER_TIMER_ID = 0x5461 };
@ USER_TIMER_ID
Definition: cicuif.h:534
@ POINTING_TIMER_ID
Definition: cicuif.h:534

Constructor & Destructor Documentation

◆ CUIFWindow()

CUIFWindow::CUIFWindow ( HINSTANCE  hInst,
DWORD  style 
)

Definition at line 1428 of file cicuif.cpp.

1429 : CUIFObject(NULL, 0, NULL, style)
1430{
1431 m_hInst = hInst;
1432 m_nLeft = 200;
1433 m_nTop = 200;
1434 m_nWidth = 200;
1435 m_nHeight = 200;
1436 m_hWnd = 0;
1437 m_pWindow = this;
1438 m_pCaptured = NULL;
1440 m_pPointed = NULL;
1442 m_pToolTip = NULL;
1443 m_pShadow = NULL;
1447}
Arabic default style
Definition: afstyles.h:94
CUIFWindow * m_pWindow
Definition: cicuif.h:184
CUIFShadow * m_pShadow
Definition: cicuif.h:525
friend class CUIFObject
Definition: cicuif.h:527
BOOL m_bShowShadow
Definition: cicuif.h:526
INT m_nWidth
Definition: cicuif.h:516
BOOL m_bPointing
Definition: cicuif.h:522
HINSTANCE m_hInst
Definition: cicuif.h:517
CUIFObject * m_pPointed
Definition: cicuif.h:521
INT m_nHeight
Definition: cicuif.h:515
INT m_nTop
Definition: cicuif.h:514
CUIFToolTip * m_pToolTip
Definition: cicuif.h:524
CUIFObject * m_pCaptured
Definition: cicuif.h:520
CUIFWindow * m_pBehindModal
Definition: cicuif.h:523
INT m_nLeft
Definition: cicuif.h:513
CUIFObject * m_pTimerObject
Definition: cicuif.h:519
void CreateScheme()
Definition: cicuif.cpp:1547
HWND m_hWnd
Definition: cicuif.h:518
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
HINSTANCE hInst
Definition: dxdiag.c:13

◆ ~CUIFWindow()

CUIFWindow::~CUIFWindow ( )
override

Definition at line 1449 of file cicuif.cpp.

1450{
1451 if (m_pToolTip)
1452 {
1453 delete m_pToolTip;
1454 m_pToolTip = NULL;
1455 }
1456 if (m_pShadow)
1457 {
1458 delete m_pShadow;
1459 m_pShadow = NULL;
1460 }
1461 for (size_t i = m_ObjectArray.size(); i > 0; )
1462 {
1463 --i;
1465 m_ObjectArray[i] = NULL;
1467 delete pObject;
1468 }
1469 if (m_pScheme)
1470 {
1471 delete m_pScheme;
1472 m_pScheme = NULL;
1473 }
1474}
BOOL Remove(CUIFObject *pObject)
Definition: cicuif.h:153
CUIFScheme * m_pScheme
Definition: cicuif.h:185
CUIFObjectArray m_ObjectArray
Definition: cicuif.h:186
size_t size() const
Definition: cicarray.h:34
FxObject * pObject
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

Member Function Documentation

◆ AdjustWindowPosition()

void CUIFWindow::AdjustWindowPosition ( )

Definition at line 2043 of file cicuif.cpp.

2044{
2045 RECT rc;
2046 rc.left = m_nLeft;
2047 rc.right = m_nLeft + m_nWidth;
2048 rc.top = m_nTop;
2049 rc.bottom = m_nTop + m_nHeight;
2050
2051 RECT rcWorkArea;
2052 if (!GetWorkArea(&rc, &rcWorkArea))
2053 return;
2054
2055 if (m_nLeft < rcWorkArea.left)
2056 m_nLeft = rcWorkArea.left;
2057 if (m_nTop < rcWorkArea.top)
2058 m_nTop = rcWorkArea.top;
2059 if (m_nLeft + m_nWidth >= rcWorkArea.right)
2060 m_nLeft = rcWorkArea.right - m_nWidth;
2061 if (m_nTop + m_nHeight >= rcWorkArea.bottom)
2062 m_nTop = rcWorkArea.bottom - m_nHeight;
2063}
BOOL GetWorkArea(LPCRECT prcWnd, LPRECT prcWorkArea)
Definition: cicuif.cpp:2013
LONG right
Definition: windef.h:308
LONG bottom
Definition: windef.h:309
LONG top
Definition: windef.h:307
LONG left
Definition: windef.h:306

◆ CreateScheme()

void CUIFWindow::CreateScheme ( )

Definition at line 1547 of file cicuif.cpp.

1548{
1549 if (m_pScheme)
1550 {
1551 delete m_pScheme;
1552 m_pScheme = NULL;
1553 }
1554
1555 INT iScheme = 0;
1557 iScheme = 1;
1558 else if (m_style & UIF_WINDOW_USESCHEME2)
1559 iScheme = 2;
1560 else if (m_style & UIF_WINDOW_USESCHEME3)
1561 iScheme = 3;
1562
1563 m_pScheme = cicCreateUIFScheme(iScheme);
1565}
CUIFScheme * cicCreateUIFScheme(DWORD type)
@unimplemented
Definition: cicuif.cpp:628
@ UIF_WINDOW_USESCHEME3
Definition: cicuif.h:506
@ UIF_WINDOW_USESCHEME2
Definition: cicuif.h:505
@ UIF_WINDOW_USESCHEME1
Definition: cicuif.h:504
void SetScheme(CUIFScheme *scheme)
Definition: cicuif.cpp:495
DWORD m_style
Definition: cicuif.h:188
int32_t INT
Definition: typedefs.h:58

Referenced by CUIFWindow().

◆ GetThis()

CUIFWindow * CUIFWindow::GetThis ( HWND  hWnd)
static

Definition at line 1536 of file cicuif.cpp.

1537{
1539}
HWND hWnd
Definition: settings.c:17
#define GetWindowLongPtr
Definition: treelist.c:73
#define GWLP_USERDATA
Definition: treelist.c:63

Referenced by WindowProcedure().

◆ GetWorkArea()

BOOL CUIFWindow::GetWorkArea ( LPCRECT  prcWnd,
LPRECT  prcWorkArea 
)

Definition at line 2013 of file cicuif.cpp.

2014{
2016 return FALSE;
2017
2018 HMONITOR hMon = ::MonitorFromRect(prcWnd, MONITOR_DEFAULTTONEAREST);
2020 mi.cbSize = sizeof(MONITORINFO);
2021 if (!hMon || !::GetMonitorInfo(hMon, &mi))
2022 {
2024 return ::SystemParametersInfo(SPI_GETWORKAREA, 0, prcWorkArea, 0);
2025
2026 prcWorkArea->left = prcWorkArea->top = 0;
2027 prcWorkArea->right = ::GetSystemMetrics(SM_CXSCREEN);
2028 prcWorkArea->bottom = ::GetSystemMetrics(SM_CYSCREEN);
2029 return TRUE;
2030 }
2031
2033 {
2034 *prcWorkArea = mi.rcWork;
2035 return TRUE;
2036 }
2037
2038 *prcWorkArea = mi.rcMonitor;
2039 return TRUE;
2040}
@ UIF_WINDOW_WORKAREA
Definition: cicuif.h:500
@ UIF_WINDOW_MONITOR
Definition: cicuif.h:501
HMONITOR WINAPI MonitorFromRect(LPCRECT, DWORD)
RECT rcMonitor
Definition: winuser.h:3785
DWORD cbSize
Definition: winuser.h:3784
static MONITORINFO mi
Definition: win.c:7338
#define GetMonitorInfo
Definition: winuser.h:5800
#define SM_CYSCREEN
Definition: winuser.h:960
struct tagMONITORINFO MONITORINFO
#define SM_CXSCREEN
Definition: winuser.h:959
int WINAPI GetSystemMetrics(_In_ int)

Referenced by CTipbarWnd::AdjustPosOnDisplayChange(), AdjustWindowPosition(), and CTipbarWnd::UpdatePosFlags().

◆ operator HWND()

CUIFWindow::operator HWND ( ) const
inline

Definition at line 535 of file cicuif.h.

535{ return m_hWnd; }

◆ SetBehindModal()

void CUIFWindow::SetBehindModal ( CUIFWindow pBehindModal)

Definition at line 2065 of file cicuif.cpp.

2066{
2067 m_pBehindModal = pBehindModal;
2068}

Referenced by CUIFMenu::ShowModalPopup().

◆ SetCaptureObject()

void CUIFWindow::SetCaptureObject ( CUIFObject pCaptured)

Definition at line 1640 of file cicuif.cpp.

1641{
1642 if (pCaptured)
1643 {
1644 m_pCaptured = pCaptured;
1646 }
1647 else
1648 {
1649 m_pCaptured = NULL;
1651 }
1652}
HWND WINAPI SetCapture(_In_ HWND hWnd)

Referenced by CUIFObject::EndCapture(), CUIFMenu::ShowModalPopup(), and CUIFObject::StartCapture().

◆ SetObjectPointed()

void CUIFWindow::SetObjectPointed ( CUIFObject pPointed,
POINT  pt 
)

Definition at line 1663 of file cicuif.cpp.

1664{
1665 if (pPointed == m_pPointed)
1666 return;
1667
1668 if (m_pCaptured)
1669 {
1671 m_pPointed->OnMouseOut(pt.x, pt.y);
1672 }
1673 else if (m_pPointed && m_pPointed->m_bEnable)
1674 {
1675 m_pPointed->OnMouseOut(pt.x, pt.y);
1676 }
1677
1678 m_pPointed = pPointed;
1679
1680 if (m_pCaptured)
1681 {
1683 m_pPointed->OnMouseIn(pt.x, pt.y);
1684 }
1685 else if (m_pPointed && m_pPointed->m_bEnable)
1686 {
1687 m_pPointed->OnMouseIn(pt.x, pt.y);
1688 }
1689}
BOOL m_bEnable
Definition: cicuif.h:190
#define pt(x, y)
Definition: drawing.c:79

◆ SetThis()

void CUIFWindow::SetThis ( HWND  hWnd,
LONG_PTR  dwNewLong 
)
static

Definition at line 1542 of file cicuif.cpp.

1543{
1545}
#define SetWindowLongPtr
Definition: treelist.c:70

Referenced by WindowProcedure().

◆ SetTimerObject()

void CUIFWindow::SetTimerObject ( CUIFObject pTimerObject,
UINT  uElapse 
)

Definition at line 2070 of file cicuif.cpp.

2071{
2072 if (pTimerObject)
2073 {
2074 m_pTimerObject = pTimerObject;
2075 ::SetTimer(m_hWnd, USER_TIMER_ID, uElapse, NULL);
2076 }
2077 else
2078 {
2081 }
2082}
UINT_PTR WINAPI SetTimer(_In_opt_ HWND, _In_ UINT_PTR, _In_ UINT, _In_opt_ TIMERPROC)
BOOL WINAPI KillTimer(_In_opt_ HWND, _In_ UINT_PTR)

Referenced by CUIFObject::EndTimer(), and CUIFObject::StartTimer().

◆ STDMETHOD_() [1/25]

CUIFWindow::STDMETHOD_ ( BOOL  ,
AnimateWnd   
)

◆ STDMETHOD_() [2/25]

CUIFWindow::STDMETHOD_ ( BOOL  ,
Initialize   
)
override

◆ STDMETHOD_() [3/25]

CUIFWindow::STDMETHOD_ ( BOOL  ,
OnEraseBkGnd   
)

◆ STDMETHOD_() [4/25]

CUIFWindow::STDMETHOD_ ( DWORD  ,
GetWndStyle   
)

◆ STDMETHOD_() [5/25]

CUIFWindow::STDMETHOD_ ( DWORD  ,
GetWndStyleEx   
)

◆ STDMETHOD_() [6/25]

CUIFWindow::STDMETHOD_ ( HRESULT  ,
OnGetObject   
)

◆ STDMETHOD_() [7/25]

CUIFWindow::STDMETHOD_ ( HWND  ,
CreateWnd   
)

◆ STDMETHOD_() [8/25]

CUIFWindow::STDMETHOD_ ( LPCTSTR  ,
GetClassName   
)
inline

Definition at line 558 of file cicuif.h.

558{ return TEXT("CiceroUIWndFrame"); }
#define TEXT(s)
Definition: k32.h:26

◆ STDMETHOD_() [9/25]

CUIFWindow::STDMETHOD_ ( LPCTSTR  ,
GetWndTitle   
)
inline

Definition at line 559 of file cicuif.h.

559{ return TEXT("CiceroUIWndFrame"); }

◆ STDMETHOD_() [10/25]

CUIFWindow::STDMETHOD_ ( LRESULT  ,
OnDisplayChange   
)

◆ STDMETHOD_() [11/25]

CUIFWindow::STDMETHOD_ ( LRESULT  ,
WindowProc   
)

◆ STDMETHOD_() [12/25]

CUIFWindow::STDMETHOD_ ( void  ,
ClientRectToWindowRect   
)

◆ STDMETHOD_() [13/25]

CUIFWindow::STDMETHOD_ ( void  ,
GetWindowFrameSize   
)

◆ STDMETHOD_() [14/25]

CUIFWindow::STDMETHOD_ ( void  ,
HandleMouseMsg   
)

◆ STDMETHOD_() [15/25]

CUIFWindow::STDMETHOD_ ( void  ,
ModalMouseNotify   
)

◆ STDMETHOD_() [16/25]

CUIFWindow::STDMETHOD_ ( void  ,
Move   
)

◆ STDMETHOD_() [17/25]

CUIFWindow::STDMETHOD_ ( void  ,
OnMouseOutFromWindow   
)

◆ STDMETHOD_() [18/25]

CUIFWindow::STDMETHOD_ ( void  ,
OnObjectMoved   
)

◆ STDMETHOD_() [19/25]

CUIFWindow::STDMETHOD_ ( void  ,
OnThemeChanged   
)

◆ STDMETHOD_() [20/25]

CUIFWindow::STDMETHOD_ ( void  ,
PaintObject   
)

◆ STDMETHOD_() [21/25]

CUIFWindow::STDMETHOD_ ( void  ,
RemoveUIObj   
)
override

◆ STDMETHOD_() [22/25]

CUIFWindow::STDMETHOD_ ( void  ,
SetCapture   
)

◆ STDMETHOD_() [23/25]

CUIFWindow::STDMETHOD_ ( void  ,
SetRect   
)
override

◆ STDMETHOD_() [24/25]

CUIFWindow::STDMETHOD_ ( void  ,
Show   
)
override

◆ STDMETHOD_() [25/25]

CUIFWindow::STDMETHOD_ ( void  ,
UpdateUI   
)

◆ WindowProcedure()

LRESULT CALLBACK CUIFWindow::WindowProcedure ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 1977 of file cicuif.cpp.

1978{
1980
1981 if (uMsg == WM_NCCREATE)
1982 {
1983 This = (CUIFWindow*)((CREATESTRUCT*)lParam)->lpCreateParams;
1985 This->m_hWnd = hWnd;
1986 }
1987 else
1988 {
1990 }
1991
1992 if (uMsg == WM_GETMINMAXINFO)
1993 {
1994 if (This)
1995 return This->WindowProc(hWnd, uMsg, wParam, lParam);
1996 else
1997 return ::DefWindowProc(hWnd, uMsg, wParam, lParam);
1998 }
1999
2000 if (!This)
2001 return 0;
2002
2003 if (uMsg == WM_NCDESTROY)
2004 {
2005 This->m_hWnd = NULL;
2007 }
2008
2009 return This->WindowProc(hWnd, uMsg, wParam, lParam);
2010}
UINT WPARAM LPARAM lParam
Definition: cicuif.h:590
UINT WPARAM wParam
Definition: cicuif.h:589
static CUIFWindow * GetThis(HWND hWnd)
Definition: cicuif.cpp:1536
UINT uMsg
Definition: cicuif.h:589
static void SetThis(HWND hWnd, LONG_PTR dwNewLong)
Definition: cicuif.cpp:1542
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
#define WM_NCCREATE
Definition: winuser.h:1683
#define WM_GETMINMAXINFO
Definition: winuser.h:1640
#define WM_NCDESTROY
Definition: winuser.h:1684

Friends And Related Function Documentation

◆ CUIFButton

friend class CUIFButton
friend

Definition at line 530 of file cicuif.h.

◆ CUIFMenu

friend class CUIFMenu
friend

Definition at line 531 of file cicuif.h.

◆ CUIFObject

friend class CUIFObject
friend

Definition at line 527 of file cicuif.h.

◆ CUIFShadow

friend class CUIFShadow
friend

Definition at line 528 of file cicuif.h.

◆ CUIFToolTip

friend class CUIFToolTip
friend

Definition at line 529 of file cicuif.h.

Member Data Documentation

◆ dwFlags

DWORD CUIFWindow::dwFlags

Definition at line 564 of file cicuif.h.

◆ lParam [1/2]

UINT WPARAM LPARAM CUIFWindow::lParam { return 0

Definition at line 589 of file cicuif.h.

Referenced by CTipbarWnd::OnModalInput(), CUIFMenu::PostKey(), and WindowProcedure().

◆ lParam [2/2]

WPARAM LPARAM CUIFWindow::lParam

Definition at line 596 of file cicuif.h.

◆ m_bPointing

BOOL CUIFWindow::m_bPointing
protected

Definition at line 522 of file cicuif.h.

Referenced by CUIFWindow().

◆ m_bShowShadow

BOOL CUIFWindow::m_bShowShadow
protected

Definition at line 526 of file cicuif.h.

Referenced by CUIFWindow().

◆ m_hInst

HINSTANCE CUIFWindow::m_hInst
protected

Definition at line 517 of file cicuif.h.

Referenced by CUIFWindow().

◆ m_hWnd

◆ m_nHeight

◆ m_nLeft

◆ m_nTop

◆ m_nWidth

◆ m_pBehindModal

CUIFWindow* CUIFWindow::m_pBehindModal
protected

Definition at line 523 of file cicuif.h.

Referenced by CUIFWindow(), and SetBehindModal().

◆ m_pCaptured

CUIFObject* CUIFWindow::m_pCaptured
protected

◆ m_pPointed

CUIFObject* CUIFWindow::m_pPointed
protected

Definition at line 521 of file cicuif.h.

Referenced by CUIFWindow(), and SetObjectPointed().

◆ m_pShadow

CUIFShadow* CUIFWindow::m_pShadow
protected

Definition at line 525 of file cicuif.h.

Referenced by CUIFWindow(), CUIFShadow::~CUIFShadow(), and ~CUIFWindow().

◆ m_pTimerObject

CUIFObject* CUIFWindow::m_pTimerObject
protected

Definition at line 519 of file cicuif.h.

Referenced by CUIFWindow(), and SetTimerObject().

◆ m_pToolTip

CUIFToolTip* CUIFWindow::m_pToolTip
protected

◆ nHeight

INT INT INT CUIFWindow::nHeight

◆ nWidth

INT INT CUIFWindow::nWidth

◆ override

LPCRECT prc CUIFWindow::override

Definition at line 545 of file cicuif.h.

◆ uMsg

UINT CUIFWindow::uMsg

Definition at line 589 of file cicuif.h.

Referenced by WindowProcedure().

◆ wParam [1/2]

UINT WPARAM CUIFWindow::wParam

Definition at line 589 of file cicuif.h.

Referenced by WindowProcedure().

◆ wParam [2/2]

WPARAM CUIFWindow::wParam

Definition at line 596 of file cicuif.h.

◆ x

LONG CUIFWindow::x

Definition at line 599 of file cicuif.h.

Referenced by CUIFBalloonWindow::CreateRegion().

◆ y [1/3]

LONG LONG CUIFWindow::y

Definition at line 563 of file cicuif.h.

Referenced by CUIFBalloonWindow::CreateRegion().

◆ y [2/3]

LONG CUIFWindow::y
Initial value:
{ }
STDMETHOD_(void, OnNCDestroy)(HWND hWnd) { }
STDMETHOD_(void, OnSetFocus)(HWND hWnd) { }
STDMETHOD_(void, OnKillFocus)(HWND hWnd) { }
STDMETHOD_(void, OnSysColorChange)() { }
STDMETHOD_(void, OnEndSession)(HWND hWnd, WPARAM wParam, LPARAM lParam) { }
STDMETHOD_(void, OnKeyUp)(HWND, WPARAM wParam, LPARAM lParam) { }
{ return 0; }
{ return 0; }
{ return 0; }
STDMETHOD_(LRESULT, OnNotifyFormat)(HWND hWnd, WPARAM wParam, LPARAM lParam) { return 0; }
{ return 0; }
static LRESULT OnUser(HWND hWnd)
Definition: wordpad.c:1963
static LRESULT OnNotify(HWND hWnd, LPARAM lParam)
Definition: wordpad.c:2015
static VOID OnTimer(IN HWND hwndDlg, IN PSYS_SHUTDOWN_PARAMS pShutdownParams)
Definition: shutdown.c:72
#define STDMETHOD_(t, m)
Definition: basetyps.h:63
HANDLE HWND
Definition: compat.h:19
static VOID OnKeyDown(PMAP infoPtr, WPARAM wParam, LPARAM lParam)
Definition: map.c:669
BOOL OnCreate(HWND hWnd)
Definition: msconfig.c:83
unsigned int UINT
Definition: ndis.h:50
static LRESULT OnDestroy(HWND hWnd, WPARAM wParam, LPARAM lParam)
Definition: welcome.c:1552
static LRESULT OnActivate(HWND hWnd, WPARAM wParam, LPARAM lParam)
Definition: welcome.c:1526
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
static INT_PTR CALLBACK OnSettingChange(HWND hWnd, WPARAM wParam, LPARAM lParam)
Definition: winmain.c:1397

Definition at line 566 of file cicuif.h.

◆ y [3/3]

LONG LONG CUIFWindow::y
Initial value:
{ }
STDMETHOD_(void, OnAnimationStart)() { }
STDMETHOD_(void, OnAnimationEnd)()

Definition at line 599 of file cicuif.h.


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