/** * @file XTPFrameThemeVisualStudio2017.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(__XTPFRAMETHEMEVISUALSTUDIO2017_H__) # define __XTPFRAMETHEMEVISUALSTUDIO2017_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 CXTPFrameThemeVisualStudio2017 : public CXTPFrameThemeOffice2013 , private IXTPApplicationEvents { public: CXTPFrameThemeVisualStudio2017(CXTPPaintManager* pPaintManager); virtual ~CXTPFrameThemeVisualStudio2017(); public: /** * @brief * This method is called to refresh the visual metrics of the manager. */ virtual void RefreshMetrics(); /** * @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 * Call this member function to sets the application state color for the * frame border. * * @param clrState RGB value representing the application state color. Use * COLORREF_NULL to reset back to default value. */ virtual void SetStateColor(COLORREF clrState); /** * @brief * Call this member function to gets the application state color for the * frame border. * * @return * RGB value representing the application state color. */ virtual COLORREF GetStateColor() const; virtual CRect CalcFrameBorder(const CXTPCommandBarsFrameHook* pFrameHook) const; virtual CXTPFrameShadow* CreateShadow(CWnd* pFrame); virtual void OnShadowedFrameActiveStateChanged(BOOL bActive, CWnd* pFrame, CXTPFrameShadow* pShadow); private: virtual void OnAmbientPropertyChanged(CXTPApplication* pApplication, XTPApplicationAmbientProperty nProperty); void UpdateStateColor(); BOOL m_bAutomaticStateColor; protected: COLORREF m_clrShadowColorActive; COLORREF m_clrShadowColorInactive; }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPFRAMETHEMEVISUALSTUDIO2017_H__) /** @endcond */