/** * @file XTPTabColorSetVisualStudio2012.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(__XTPTABCOLORSETVISUALSTUDIO2012_H__) # define __XTPTABCOLORSETVISUALSTUDIO2012_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPTabColorSetVisualStudio2012 implements a Visual Studio 2012 tab color set. */ class _XTP_EXT_CLASS CXTPTabColorSetVisualStudio2012 : public CXTPTabPaintManagerColorSet { public: CXTPTabColorSetVisualStudio2012(); /** * @brief * Refreshes the visual metrics of the tabs. * Override this method to change the colors of the color members. * @details * All of the color members are refreshed when this method is called. */ virtual void RefreshMetrics(); /** * @brief * Retrieves the color of a specified tab. * @param pItem Pointer to the tab with the color to retrieve. * @return * The color of the tab. * @details * This method is used within many of * CXTPTabPaintManagerColorSet's "fill" methods. * @see * CXTPTabManager::GetItemColor, XTPTabColorStyle, * SetColor, GetColorSet, SetColorSet */ virtual COLORREF GetItemColor(CXTPTabManagerItem* pItem); /** * @brief * Fills a specified tab navigation button. * @param pDC Pointer to a valid device context. * @param pButton Pointer to the tab navigation button to fill. * @param rc Reference to the bounding rectangle of the tab navigation button. * @details * This method is used to fill the tab navigation buttons in the header of * the tab client and is overridden by XTPTabColorStyle and * CXTPTabPaintManagerColorSet to perform actions such as painting * the highlighted, pressed, and normal versions of tab navigation buttons. * * This method must be overridden. * @see * CXTPTabManager::GetNavigateButton, CXTPTabManagerNavigateButton */ virtual void FillNavigateButton(CDC* pDC, CXTPTabManagerNavigateButton* pButton, CRect& rc); /** * @brief * Obtains client background color. * @param pTabManager Pointer to the tab manager with the tab client area to fill. * @return * Client area background color value. */ virtual COLORREF GetClientColor(CXTPTabManager* pTabManager); protected: CXTPPaintManagerColor m_clrNonActiveButtonNormal; CXTPPaintManagerColor m_clrNonActiveButtonPressed; CXTPPaintManagerColor m_clrNonActiveButtonHighlighted; CXTPPaintManagerColor m_clrNonActiveButtonHighlightedClose; CXTPPaintManagerColor m_clrNonActiveButtonSelected; CXTPPaintManagerColor m_clrNonActiveButtonSelectedPressed; CXTPPaintManagerColor m_clrNonActiveButtonSelectedHighlighted; CXTPPaintManagerColor m_clrNonActiveButtonBorderHot; CXTPPaintManagerColor m_clrNonActiveText; CXTPPaintManagerColor m_clrNonActiveTextPressed; CXTPPaintManagerColor m_clrNonActiveTextHighlighted; CXTPPaintManagerColor m_clrNonActiveTextHighlightedClose; CXTPPaintManagerColor m_clrNonActiveTextSelected; CXTPPaintManagerColor m_clrNonActiveTextSelectedPressed; CXTPPaintManagerColor m_clrNonActiveTextSelectedHighlighted; CXTPPaintManagerColor m_clrNonActiveActiveFilesGlyph; CXTPPaintManagerColor m_clrNonActiveActiveFilesGlyphPressed; CXTPPaintManagerColor m_clrNonActiveActiveFilesGlyphHighlighted; CXTPPaintManagerColor m_clrNonActiveActiveFilesBack; CXTPPaintManagerColor m_clrNonActiveActiveFilesBackPressed; CXTPPaintManagerColor m_clrNonActiveActiveFilesBackHighlighted; CXTPPaintManagerColor m_clrNonActiveFrameBorder; CXTPPaintManagerColor m_clrNonActiveButtonBorder; CXTPPaintManagerColor m_clrNonActiveAutoHideFace; CXTPPaintManagerColor m_clrNonActiveHeaderFace; }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPTABCOLORSETVISUALSTUDIO2012_H__) /** @endcond */