/** * @file XTPDockingPaneThemeOffice2013.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(__XTPDOCKINGPANETHEMEOFFICE2013_H__) # define __XTPDOCKINGPANETHEMEOFFICE2013_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPDockingPaneOffice2013Theme is used to define drawing routines * specific to an Office 2013 docking pane theme. */ class _XTP_EXT_CLASS CXTPDockingPaneOffice2013Theme : public CXTPDockingPaneVisualStudio2012Theme { public: /** * @brief * Constructs a CXTPDockingPaneOffice2013Theme object. */ CXTPDockingPaneOffice2013Theme(); /** * @brief * Destroys a CXTPDockingPaneOffice2013Theme object, handles * cleanup and deallocation. */ virtual ~CXTPDockingPaneOffice2013Theme(); /** * @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 * Override this member function to draw a caption. * @param pDC Reference to the device context in which to draw. * @param pPane Pointer to the tabbed container. * @param rc Client rectangle of the tabbed container. */ virtual void DrawCaption(CDC* pDC, CXTPDockingPaneTabbedContainer* pPane, CRect rc); /** * @brief * Call this method to draw the frame of a floating window. * @param pDC Pointer to a valid device context. * @param pPane Floating window pointer. * @param rc Client rectangle of the floating frame. */ virtual void DrawFloatingFrame(CDC* pDC, CXTPDockingPaneMiniWnd* pPane, CRect rc); /** * @brief * Override this member function to draw a tabbed container. * @param pDC Reference to the device context in which to draw. * @param pPane Pointer to the tabbed container. * @param rc Client rectangle of the tabbed container. */ virtual void DrawPane(CDC* pDC, CXTPDockingPaneTabbedContainer* pPane, CRect rc); /** * @brief * Override this member function to draw the side panel. * @param pDC Reference to the device context in which to draw. * @param pPane Pointer to the side panel. * @param rc Client rectangle of the side panel. */ virtual void DrawSidePanel(CDC* pDC, CXTPDockingPaneSidePanel* pPane, CRect rc); /** * @brief * Override this member function to draw a button for a tabbed caption. * @param pDC Pointer to a valid device context. * @param pButton Pointer to the button to draw. * @param clrButton Color of the button's text. */ virtual void DrawCaptionButton(CDC* pDC, CXTPDockingPaneCaptionButton* pButton, COLORREF clrButton); /** * @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); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPDOCKINGPANETHEMEOFFICE2013_H__) /** @endcond */