/** * @file XTPDockingPaneTabColorSet2012.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(__XTPDOCKINGPANETABCOLORSET2012_H__) # define __XTPDOCKINGPANETABCOLORSET2012_H__ /** @endcond */ # if _MSC_VER > 1000 # pragma once # endif // _MSC_VER > 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" /** * @brief * Helper class used to initialize default colors for a theme from * an .INI resource and handle drawing routines. */ class _XTP_EXT_CLASS CXTPDockingPaneTabColorSet2012 : public CXTPTabPaintManagerColorSet { public: /** * @brief * Default class constructor. */ CXTPDockingPaneTabColorSet2012(); /** * @brief * This member function is used to initialize default colors * for a theme from an .INI resource. */ virtual void RefreshMetrics(); /** * @brief * Call this member function to retrieve the color for the * tab specified by pItem. * @param pItem Pointer to a valid CXTPTabManagerItem object. * @return * An RGB color value representing the specified tab color. */ virtual COLORREF GetItemColor(CXTPTabManagerItem* pItem); /** * @brief * This member is called to fill the tab navigation buttons. * @param pDC Pointer to a valid device context. * @param pButton Tab navigation button to fill. * @param rc Bounding rectangle of the tab navigation button. * @details * This member must be overridden and takes care of filling * the tab navigation buttons that are in the header of the * TabClient. The XTPTabColorStyle CXTPTabPaintManagerColorSet * classes override this to perform actions such as painting * the highlighting, pressed, and normal versions of the tab * navigation buttons. * @see * CXTPTabManager::GetNavigateButton, CXTPTabManagerNavigateButton */ virtual void FillNavigateButton(CDC* pDC, CXTPTabManagerNavigateButton* pButton, CRect& rc); /** * @brief * This member is called to fill the header of the TabClient * of the tab manager. * @param pDC Pointer to a valid device context. * @param rc Bounding rectangle of the tab header. * @param pTabManager Fill the header of this CXTPTabManager object. * @details * The TabClient header is the bounding rectangle with tab buttons. The bounding * rectangle can be retrieved with the CXTPTabPaintManagerTheme::GetHeaderRect, * and CXTPTabManager::GetHeaderRect members. * @see * CXTPTabPaintManagerTheme::GetHeaderRect, CXTPTabManager::GetHeaderRect */ virtual void FillHeader(CDC* pDC, CRect rc, CXTPTabManager* pTabManager); }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPDOCKINGPANETABCOLORSET2012_H__) /** @endcond */