/** * @file XTPCalendarThemePrevNextEventButton.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ #if !defined(__XTPCALENDARTHEMEPREVNEXTEVENTBUTTON_H__) # define __XTPCALENDARTHEMEPREVNEXTEVENTBUTTON_H__ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CTOPrevNextEventButtons; DECLARE_THEMEPART(CTOPrevNextEventButton, CXTPCalendarThemePart) CXTPCalendarThemeIntValue m_nBitmapID; CXTPCalendarThemeRectValue m_rcBitmapBorder; CXTPCalendarTheme::CThemeFontColorSetValue m_fcsetText; CXTPPaintManagerColor m_clrDisabledText; CXTPCalendarThemeStringValue m_strText; virtual void RefreshMetrics(BOOL bRefreshChildren = TRUE); virtual void DoPropExchange(CXTPPropExchange*){}; virtual void Serialize(CArchive&){}; virtual void AdjustLayout(CXTPCalendarView* pObject, CDC* pDC, const CRect& rcRect); virtual void Draw(CXTPCalendarView* pObject, CDC* pDC); using TBase::Draw; virtual int HitTest(const CPoint* pPoint = NULL) const; // return 0, xtpCalendarHitTestPrevEventButton or xtpCalendarHitTestNextEventButton virtual void OnMouseMove(CCmdTarget* pObject, UINT nFlags, CPoint point); virtual BOOL OnLButtonDown(CCmdTarget* pObject, UINT nFlags, CPoint point, CTOPrevNextEventButtons* pButtons); using TBase::OnLButtonDown; virtual CRect GetRect(); CTOPrevNextEventButton(); virtual ~CTOPrevNextEventButton(); protected: CSize GetSize(const CRect* prcRect = NULL); BOOL m_bPrev; CRect m_rcRect; public: BOOL m_bHot; BOOL m_bDisabled; BOOL m_bVisible; } ; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // __XTPCALENDARTHEMEPREVNEXTEVENTBUTTON_H__