/** * @file XTPTabColorSetVisualStudio2005.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(__XTPTABCOLORSETVISUALSTUDIO2005_H__) # define __XTPTABCOLORSETVISUALSTUDIO2005_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CColorSetVisualStudio2005 implements a Visual Studio 2005 tab color set. * @details * To use the Visual Studio 2005 color set, SetColor is used to apply * the xtpTabColorVisualStudio2005 XTPTabColorStyle. * * The following appearances (XTPTabAppearanceStyle) support CColorSetVisualStudio2005: * xtpTabAppearancePropertyPage2003: Office 2003 appearance. * xtpTabAppearanceStateButtons: State Button appearance. * @see * XTPTabColorStyle, XTPTabAppearanceStyle, SetAppearance, GetAppearance, * GetAppearanceSet, SetColor, GetColor, GetColorSet, SetColorSet, SetAppearanceSet */ class _XTP_EXT_CLASS CColorSetVisualStudio2005 : public CXTPTabColorSetOffice2003 { public: /** * @brief * Constructs a CColorSetVisualStudio2005 object. */ CColorSetVisualStudio2005(); public: /** * @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. */ void RefreshMetrics(); /** * @brief * Fills a specified tab button. * @param pDC Pointer to a valid device context. * @param rcItem Bounding rectangle of the tab button to fill. * @param pItem Pointer to the tab button to fill. * @return * The color of the specified tab button. * @details * This method is used to fill all tab buttons except when * XTPTabAppearanceStyle is set to xtpTabAppearanceStateButtons. * xtpTabAppearanceStateButtons requires the FillStateButton member. * * If m_bGradientButton is TRUE, then * CXTPTabColorSetOffice2003::FillPropertyButton is used to fill the * tab button with a gradient fill. * See CXTPTabColorSetOffice2003::FillPropertyButton for details. * * If m_bGradientButton is FALSE, then * CXTPTabPaintManagerColorSet::FillPropertyButton is used. * @see * m_bGradientButton */ COLORREF FillPropertyButton(CDC* pDC, CRect rcItem, CXTPTabManagerItem* pItem); protected: BOOL m_bGradientButton; /**< TRUE if luna colors are enabled. This will be TRUE when using Windows XP and the current system theme is xtpSystemThemeSilver, xtpSystemThemeOlive or xtpSystemThemeOlive, otherwise FALSE. */ }; /** @cond */ typedef CColorSetVisualStudio2005 CColorSetWhidbey; /**< obsolete, for backward compatibility only. */ /** @endcond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPTABCOLORSETVISUALSTUDIO2005_H__) /** @endcond */