/** * @file XTPFrameThemeVisualStudio2012.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(__XTPVISUALSTUDIO2012FRAMETHEME_H__) # define __XTPVISUALSTUDIO2012FRAMETHEME_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPPaintManager; class CXTPCommandBarsFrameHook; ///////////////////////////////////////////////////////////////////////////// // CXTPFrameThemeVisualStudio2012 class _XTP_EXT_CLASS CXTPFrameThemeVisualStudio2012 : public CXTPFrameThemeModernUI { protected: explicit CXTPFrameThemeVisualStudio2012(CXTPPaintManager* pPaintManager); public: virtual ~CXTPFrameThemeVisualStudio2012(); virtual void RefreshMetrics(CXTPResourceImages* pImages); /** * @brief * This method is called to refresh the visual metrics of the manager. */ virtual void RefreshMetrics(); virtual LPCTSTR GetStyleResourceName() const; virtual CSize GetCaptionButtonSize(UINT nId) const; virtual CSize GetCaptionButtonSize(UINT nId, HWND hwnd) const; virtual CRect CalcFrameBorder(const CXTPCommandBarsFrameHook* pFrameHook) const; virtual CXTPFrameShadow* CreateShadow(CWnd* pFrame); virtual void OnShadowedFrameActiveStateChanged(BOOL bActive, CWnd* pFrame, CXTPFrameShadow* pShadow); }; ///////////////////////////////////////////////////////////////////////////// // CXTPFrameThemeVisualStudio2012Light class _XTP_EXT_CLASS CXTPFrameThemeVisualStudio2012Light : public CXTPFrameThemeVisualStudio2012 { public: explicit CXTPFrameThemeVisualStudio2012Light(CXTPPaintManager* pPaintManager); virtual ~CXTPFrameThemeVisualStudio2012Light(); }; ///////////////////////////////////////////////////////////////////////////// // CXTPFrameThemeVisualStudio2012Dark class _XTP_EXT_CLASS CXTPFrameThemeVisualStudio2012Dark : public CXTPFrameThemeVisualStudio2012 { public: explicit CXTPFrameThemeVisualStudio2012Dark(CXTPPaintManager* pPaintManager); virtual ~CXTPFrameThemeVisualStudio2012Dark(); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif // !defined(__XTPVISUALSTUDIO2012FRAMETHEME_H__) /** @endcond */