/** * @file XTPShortcutBarVisualStudio2015Theme.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(__XTPSHORTCUTBARVISUALSTUDIO2015THEME_H__) # define __XTPSHORTCUTBARVISUALSTUDIO2015THEME_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPShortcutBarVisualStudio2015Theme is a CXTPShortcutBarOffice2013Theme * derived class that represents a Visual Studio 2015 shortcut bar theme. */ class _XTP_EXT_CLASS CXTPShortcutBarVisualStudio2015Theme : public CXTPShortcutBarOffice2013Theme { public: /** * @brief * Constructs a CXTPShortcutBarVisualStudio2015Theme object. */ CXTPShortcutBarVisualStudio2015Theme(); /** * @brief * Destroys a CXTPShortcutBarVisualStudio2015Theme object, * handles cleanup and deallocation. */ virtual ~CXTPShortcutBarVisualStudio2015Theme(); /** * @brief * Refreshes the visual metrics of the shortcut bar paint manager. * @details * This method refreshes all of the visual metrics of the shortcut bar * (pane caption color, pane font, pane caption height, etc.). */ virtual void RefreshMetrics(); /** * @brief * Draws the caption for a specified shortcut bar pane item. * @param pDC Pointer to the client device context. * @param pItem Pointer to the CXTPShortcutBarPaneItem object to be drawn. * @param bDraw TRUE to draw the shortcut bar pane item caption, FALSE to only * retrieve the size of the shortcut bar pane item caption. * @details * Panes of the shortcut bar are displayed in the shortcut bar's * client area. Each pane consists of a caption and one or more * sub-panes. Each sub-pane has its own caption and is drawn by * the DrawPaneItemCaption method. * * The caption of the shortcut bar pane item is set when the * pane item is created by the CXTPShortcutBarPane::AddItem method. * * The sub-items of a shortcut bar pane can be retrieved by using * the CXTPShortcutBarPane::GetItem method. * @return * The size of the shortcut pane item caption. */ virtual int DrawPaneItemCaption(CDC* pDC, CXTPShortcutBarPaneItem* pItem, BOOL bDraw); virtual void DrawPaneCaptionMinimizeButton(CDC* pDC, CXTPShortcutBarPane* pPane); /** * @brief * Fills a specified item for the shortcut bar control. * @param pDC Pointer to the client device context. * @param pItem Pointer to the CXTPShortcutBarItem object to be filled. */ virtual void FillShortcutItemEntry(CDC* pDC, CXTPShortcutBarItem* pItem); /** * @brief * Fills a specified navigation item for the minimized shortcut bar control. * @param pDC Pointer to the client device context. * @param pItem Pointer to the CXTPShortcutBarItem object to be filled. */ virtual void FillNavigationItemEntry(CDC* pDC, CXTPShortcutBarItem* pItem); void DrawHiliteBorder(CDC* pDC, CRect rc); protected: BOOL m_bHiliteBorders; /**< TRUE to draw borders around highlighted items. */ CXTPPaintManagerColor m_clrBorderHilite; /**< Highlighted border color. */ CXTPPaintManagerColor m_clrBackHiliteSelected; /**< Selected highlighted background color. */ }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPSHORTCUTBARVISUALSTUDIO2015THEME_H__) /** @endcond */