/** * @file XTPCalendarCaptionBarResourceTheme.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(__XTPCALENDARCAPTIONBARRESOURCETHEME_H__) # define __XTPCALENDARCAPTIONBARRESOURCETHEME_H__ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPCalendarCaptionBarResourceTheme is a CXTPCalendarCaptionBarOffice2013Theme derived * class that represents the Resource calendar theme. */ class _XTP_EXT_CLASS CXTPCalendarCaptionBarResourceTheme : public CXTPCalendarCaptionBarOffice2013Theme { public: /** * @brief * Default paint manager constructor. * @param pTheme A pointer to CXTPCalendarCaptionBarTheme object. * @details Handles initial initialization. * * @see RefreshMetrics() */ CXTPCalendarCaptionBarResourceTheme(CXTPCalendarCaptionBarTheme* pTheme = NULL); /** * @brief * Default paint manager destructor. * * @details Handles member items deallocation. */ virtual ~CXTPCalendarCaptionBarResourceTheme(); /** * @brief * Performs refreshing of graphical related parameters from * system settings. Base implementation do nothing. */ virtual void RefreshMetrics(); /** * @brief * This member function is used to read color by name from resources. * * @param pcszColorName string with Color Name * @param clrDefault COLORREF of default color * * @return A RGB color value. */ virtual COLORREF GetColor2(LPCTSTR pcszColorName, COLORREF clrDefault); virtual void PartAdjustLayout(CXTPExpandButtonPart* pBarPart, CDC* /*pDC*/, const CRect& rcRect); virtual void PartDraw(CXTPSwitchViewButtonPart* pBarPart, CDC* pDC); virtual void PartDraw(CXTPScrollDateButtonPart* pBarPart, CDC* pDC); virtual void PartDraw(CXTPDateLabelPart* pBarPart, CDC* pDC); virtual void PartDraw(CXTPExpandButtonPart* pBarPart, CDC* pDC); protected: virtual CXTPResourceImage* GetResourceImage(LPCTSTR lpszImageFile); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPCALENDARCAPTIONBARRESOURCETHEME_H__)