/**
* @file XTPTabColorSetVisualStudio2008.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(__XTPTABCOLORSETVISUALSTUDIO2008_H__)
# define __XTPTABCOLORSETVISUALSTUDIO2008_H__
/** @endcond */
# if _MSC_VER > 1000
# pragma once
# endif // _MSC_VER > 1000
# include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h"
/**
* @brief
* CXTPTabColorSetVisualStudio2008 implements a Visual Studio 2008 tab color set.
* @details
* To use the Visual Studio 2008 color set, SetColor is used to apply
* the xtpTabColorVisualStudio2008 XTPTabColorStyle.
*
* The following appearances (XTPTabAppearanceStyle) support CColorSetVisualStudio2008:
* xtpTabAppearancePropertyPage2003: Office 2003 appearance.
* xtpTabAppearanceStateButtons: State Button appearance.
* @see
* XTPTabColorStyle, XTPTabAppearanceStyle, SetAppearance, GetAppearance,
* GetAppearanceSet, SetColor, GetColor, GetColorSet, SetColorSet, SetAppearanceSet
*/
class _XTP_EXT_CLASS CXTPTabColorSetVisualStudio2008 : public CXTPTabColorSetOffice2003
{
public:
/**
* @brief
* Constructs a CXTPTabColorSetVisualStudio2008 object.
*/
CXTPTabColorSetVisualStudio2008();
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.
* @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. */
};
# define CColorSetVisualStudio2008 CXTPTabColorSetVisualStudio2008
# include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h"
/** @cond */
#endif // !defined(__XTPTABCOLORSETVISUALSTUDIO2008_H__)
/** @endcond */