/** * @file XTPFrameThemeOffice2013.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 * */ /** @cond */ #if !defined(__XTPFRAMETHEMEOFFICE2013_H__) # define __XTPFRAMETHEMEOFFICE2013_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPPaintManager; class CXTPCommandBarsFrameHook; class CXTPRibbonBar; class _XTP_EXT_CLASS CXTPFrameThemeOffice2013 : public CXTPFrameThemeModernUI { public: CXTPFrameThemeOffice2013(CXTPPaintManager* pPaintManager); virtual ~CXTPFrameThemeOffice2013(); protected: /** * @brief * This method is called to draw the frame caption bar. * * @param pDC Pointer to device context. * @param rcCaptionBar Caption bar rectangle. * @param pSite Frame to draw. * @param bActive TRUE if the frame is active. */ virtual void DrawCaptionBar(CDC* pDC, CRect rcCaptionBar, CWnd* pSite, BOOL bActive); /** * @brief * This method is called to draw the caption button. * * @param pDC Pointer to device context. * @param rc Bounding rectangle of the button. * @param nId Identifier of the button. * @param bSelected TRUE if the button is highlighted. * @param bPressed TRUE if the button is pressed. * @param bActive TRUE if the frame is active. */ virtual void DrawFrameCaptionButton(CDC* pDC, CRect rc, int nId, BOOL bSelected, BOOL bPressed, BOOL bActive); /** * @brief * This method is called to draw the caption button. * * @param pDC Pointer to device context. * @param rc Bounding rectangle of the button. * @param nId Identifier of the button. * @param bSelected TRUE if the button is highlighted. * @param bPressed TRUE if the button is pressed. * @param bActive TRUE if the frame is active. * @param pRibbonBar Ribbon bar pointer. */ virtual void DrawFrameCaptionButton(CDC* pDC, CRect rc, int nId, BOOL bSelected, BOOL bPressed, BOOL bActive, CXTPRibbonBar* pRibbonBar); /** * @brief * This method is called to refresh the visual metrics of the manager. */ virtual void RefreshMetrics(); /** * @brief * Loads markup parts. * * @param bReload Re-loads previously loaded parts if TRUE. */ virtual void LoadParts(BOOL bReload = FALSE); virtual LPCTSTR GetStyleResourceName() const; virtual CRect CalcFrameBorder(const CXTPCommandBarsFrameHook* pFrameHook) const; virtual CXTPFrameShadow* CreateShadow(CWnd* pFrame); CXTPPaintManagerColor m_clrFrameCaptionBorder; CXTPColorSetCaptionButton m_csFrameCloseButtonActive; /**< Close button active background color.*/ CXTPColorSetCaptionButton m_csFrameCloseButtonInactive; /**< Close button inactive background color.*/ CXTPColorSetCaptionButton m_csFrameCloseButtonHot; /**< Close button hot background color.*/ CXTPColorSetCaptionButton m_csFrameCloseButtonPressed; /**< Close button pressed background color.*/ CXTPColorSetCaptionButton m_csFrameCloseButtonActiveBSMode; /**< Close button active background color.*/ CXTPColorSetCaptionButton m_csFrameCloseButtonInactiveBSMode; /**< Close button inactive background color.*/ CXTPColorSetCaptionButton m_csFrameCaptionButtonInactiveBSMode; CXTPColorSetCaptionButton m_csFrameCaptionButtonActiveBSMode; CXTPColorSetCaptionButton m_csFrameCaptionButtonHotBSMode; CXTPColorSetCaptionButton m_csFrameCaptionButtonPressedBSMode; using CXTPFrameThemeModernUI::m_bMarkupPartsLoaded; }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPFRAMETHEMEOFFICE2013_H__) /** @endcond */