/** * @file XTPDockingPaneThemeVisualStudio2022.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(__XTPDOCKINGPANETHEMEVISUALSTUDIO2022_H__) # define __XTPDOCKINGPANETHEMEVISUALSTUDIO2022_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPDockingPaneVisualStudio2022Theme is used to define drawing routines * specific to a Visual Studio 2022 docking pane theme. */ class _XTP_EXT_CLASS CXTPDockingPaneVisualStudio2022Theme : public CXTPDockingPaneVisualStudio2012Theme { public: /** * @brief * Constructs a CXTPDockingPaneVisualStudio2022Theme object. */ CXTPDockingPaneVisualStudio2022Theme(); /** * @brief * Destroys a CXTPDockingPaneVisualStudio2022Theme object, handles * cleanup and deallocation. */ virtual ~CXTPDockingPaneVisualStudio2022Theme(); /** * @brief * This member function is used to initialize default colors * for a theme from an .INI resource. */ virtual void RefreshMetrics(); /** * @brief * Override this method to draw a splitter. * @param pDC Pointer to a valid device context. * @param pSplitter Pointer to a splitter window. */ virtual void DrawSplitter(CDC* pDC, CXTPDockingPaneSplitterWnd* pSplitter); /** * @brief * This method is called by the framework to draw the docking pane * auto-hide panel background and splitter. * @param pDC Pointer to the auto-hide panes device context. * @param rc Size of the area to draw. * @param direction Docking direction (either xtpPaneDockLeft, xtpPaneDockRight, * xtpPaneDockTop or xtpPaneDockBottom). */ virtual void DrawAutoHidePanel(CDC* pDC, CRect rc, XTPDockingPaneDirection direction); protected: /** * @brief * This member function is called to draw a title bar for the * docking pane. * @param pDC Pointer to a valid device context. * @param pPane Pointer to a valid CXTPDockingPaneBase object. * @param rc Size of the title bar to draw. * @param bVertical TRUE if the title bar should be drawn vertically. */ virtual void DrawTitleBar(CDC* pDC, CXTPDockingPaneBase* pPane, CRect rc, BOOL bVertical); COLORREF m_clrCaptionBorder; /**< Caption border color. */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPDOCKINGPANETHEMEVISUALSTUDIO2022_H__) /** @endcond */