/** * @file XTPDockingPaneTabColorSetVisualStudio2003.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(__XTPDOCKINGPANETABCOLORSETVISUALSTUDIO2003_H__) # define __XTPDOCKINGPANETABCOLORSETVISUALSTUDIO2003_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 CXTPDockingPaneTabColorSetVisualStudio2003 : public CXTPTabColorSetOffice2003 { public: /** * @brief * Default class constructor. * @param bHighlightSelected TRUE if the tab is selected. */ CXTPDockingPaneTabColorSetVisualStudio2003(BOOL bHighlightSelected); /** * @brief * This member function is used to initialize default colors * for a theme from an .INI resource. */ void RefreshMetrics(); public: /** * @brief * This member is used to paint the specified frame portion * for a docking pane tab. * @param pDC Pointer to a valid device context. * @param rc Size of the area to draw. * @param pWnd Pointer to a valid CWnd object. * @param pSite Pointer to a valid CWnd object. */ void FillFramePartRect(CDC* pDC, CRect rc, CWnd* pWnd, CWnd* pSite); /** * @brief * This member is used to paint the specified header portion * for a docking pane tab. * @param pDC Pointer to a valid device context. * @param rc Size of the area to draw. * @param pTabManager Pointer to a valid CXTPTabManager object. */ void FillHeader(CDC* pDC, CRect rc, CXTPTabManager* pTabManager); /** * @brief * This member is called to fill a tab button. * @param pDC Pointer to a valid device context. * @param rcItem Bounding rectangle of the tab button to fill. * @param pItem Tab button to draw. * @return * COLORREF returned from CXTPTabManager::GetItemColor(pItem). * @details * This member is used to fill all tab buttons except when the * XTPTabAppearanceStyle is xtpTabAppearanceStateButtons. * xtpTabAppearanceStateButtons require the FillStateButton member. * * Tab buttons will use CXTPTabPaintManagerColorSet::GradientFill to fill * the buttons. The gradient will use the color of the tab item blended * with RGB(255, 255, 255) to produce a "light color". The gradient will * start with the "light color" and fill to the normal color of the tab item. * @see * FillStateButton */ virtual COLORREF FillPropertyButton(CDC* pDC, CRect rcItem, CXTPTabManagerItem* pItem); protected: BOOL m_bGradientButton; BOOL m_bTransparentButton; BOOL m_bHighlightSelected; }; # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" /** @cond */ #endif // !defined(__XTPDOCKINGPANETABCOLORSETVISUALSTUDIO2003_H__) /** @endcond */