/** * @file XTPCalendarOffice2003Theme.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(__XTPCALENDAROFFICE2003THEME_H__) # define __XTPCALENDAROFFICE2003THEME_H__ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPCalendarOffice2003Theme is a CXTPCalendarOffice2000Theme derived * class that represents the Office 2003 calendar theme. */ class _XTP_EXT_CLASS CXTPCalendarOffice2003Theme : public CXTPCalendarOffice2000Theme { public: /** * @brief * Default paint manager constructor. * * @details Handles initial initialization. * * @see RefreshMetrics() */ CXTPCalendarOffice2003Theme(); /** * @brief * Default paint manager destructor. * * @details Handles member items deallocation. */ virtual ~CXTPCalendarOffice2003Theme(); /** * @brief * This member function is used to initialize all drawing defaults. * * @details Initializes all drawings defaults (fonts, colors, etc.). * most of defaults are system defaults. */ virtual void RefreshMetrics(); virtual void PartRefresh(CWeekViewPart* pViewPart); virtual void PartRefresh(CDayViewWorkCellPart* pViewPart); virtual void PartRefresh(CDayViewNonworkCellPart* pViewPart); virtual void PartRefresh(CMonthViewGridPart* pViewPart); virtual void PartDraw(CDayViewCellPart* pViewPart, CDC* pDC, CXTPCalendarDayViewGroup* pViewGroup, CRect rc, const XTP_CALENDAR_DAYVIEWCELL_PARAMS& cellParams); virtual void PartDrawDayHeader(CWeekViewPart* pViewPart, CDC* pDC, CRect rcDay, int nHeaderHeight, CString strHeader, BOOL bIsCurrent, BOOL bIsSelected); virtual void PartDrawDayDate(CMonthViewEventPart* pViewPart, CDC* pDC, CRect rc, BOOL bToday, BOOL bSelected, BOOL bFirstMonthDay, CString strText); using CXTPCalendarOffice2000Theme::PartDraw; using CXTPCalendarOffice2000Theme::PartRefresh; }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPCALENDAROFFICE2003THEME_H__)