/** * @file XTPStatusBarThemeVisualStudio2019.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(__XTPXTPSTATUSBARTHEMEVISUALSTUDIO2019_H__) # define __XTPXTPSTATUSBARTHEMEVISUALSTUDIO2019_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * The CXTPStatusBarThemeVisualStudio2019 class is used to enable the * Visual Studio 2019 style theme for the status bar. */ class _XTP_EXT_CLASS CXTPStatusBarThemeVisualStudio2019 : public CXTPStatusBarThemeOffice2013 , private IXTPApplicationEvents { public: /** * @brief * Constructs a CXTPStatusBarThemeVisualStudio2019 object. * @param pPaintManager Pointer to the parent CXTPPaintManager object. */ CXTPStatusBarThemeVisualStudio2019(CXTPPaintManager* pPaintManager); /** * @brief * Handles object destruction. */ ~CXTPStatusBarThemeVisualStudio2019(); /** * @brief * This method is called to draw the status bar's gripper. * @param pDC Pointer to a valid device context * @param rcClient Client rectangle of the status bar. */ virtual void DrawStatusBarGripper(CDC* pDC, CRect rcClient); /** * @brief * This method is called to refresh colors and other theme specific * metrics for the paint manager. */ virtual void RefreshMetrics(); /** * @brief * Call this member function to set the application state color for the * status bar. * @param clrState COLORREF value representing the application state color. Use * COLORREF_NULL to reset back to default color. */ virtual void SetStateColor(COLORREF clrState); /** * @brief * Call this member function to get the application state color for the * status bar. * @return Returns the application state color for the status bar */ virtual COLORREF GetStateColor() const; private: virtual void OnAmbientPropertyChanged(CXTPApplication* pApplication, XTPApplicationAmbientProperty nProperty); void UpdateStateColor(); BOOL m_bAutomaticStateColor; }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPXTPSTATUSBARTHEMEVISUALSTUDIO2019_H__) /** @endcond */