/** * @file XTPTabColorSetDefault.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(__XTPTABCOLORSETDEFAULT_H__) # define __XTPTABCOLORSETDEFAULT_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * CXTPTabColorSetDefault implements a default tab color set. * @details * To use the default color set, SetColor is used to apply * the xtpTabColorDefault XTPTabColorStyle. * @see * XTPTabColorStyle, XTPTabAppearanceStyle, SetAppearance, GetAppearance, * GetAppearanceSet, SetColor, GetColor, GetColorSet, SetColorSet, SetAppearanceSet */ class _XTP_EXT_CLASS CXTPTabColorSetDefault : public CXTPTabPaintManagerColorSet { 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. */ virtual void RefreshMetrics(); /** * @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. * @see * CXTPTabManager::GetNavigateButton, CXTPTabManagerNavigateButton */ void FillNavigateButton(CDC* pDC, CXTPTabManagerNavigateButton* pButton, CRect& rc); }; class _XTP_EXT_CLASS CXTPTabPaintManager::CColorSetDefault : public CXTPTabColorSetDefault { }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPTABCOLORSETDEFAULT_H__) /** @endcond */