/** * @file XTPDockingPaneThemeNativeWindows10.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(__XTPDOCKINGPANETHEMENATIVEWINDOWS10_H__) # define __XTPDOCKINGPANETHEMENATIVEWINDOWS10_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPDockingPaneNativeWindows10Theme is used to define drawing routines * specific to a Native Windows 10 docking pane theme. */ class _XTP_EXT_CLASS CXTPDockingPaneNativeWindows10Theme : public CXTPDockingPaneVisualStudio2012Theme { public: /** * @brief * Constructs a CXTPDockingPaneNativeWindows10Theme object. */ CXTPDockingPaneNativeWindows10Theme(); /** * @brief * Destroys a CXTPDockingPaneNativeWindows10Theme object, handles * cleanup and deallocation. */ virtual ~CXTPDockingPaneNativeWindows10Theme(); /** * @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(__XTPDOCKINGPANETHEMENATIVEWINDOWS10_H__) /** @endcond */