/** * @file XTPRibbonBackstageViewThemeNativeWindows11.cpp * * @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 * */ #include "stdafx.h" #include "Common/XTPTypeId.h" #include "Common/XTPCasting.h" #include "Common/XTPFramework.h" #include "Common/XTPSystemHelpers.h" #include "Common/XTPSynchro.h" #include "Common/XTPApplication.h" #include "Common/XTPSingleton.h" #include "Common/XTPGdiObjects.h" #include "Common/XTPDrawHelpers.h" #include "Common/XTPResourceImage.h" #include "Common/XTPColorManager.h" #include "Common/ScrollBar/XTPScrollBase.h" #include "Common/ScrollBar/XTPScrollBarPaintManager.h" #include "Common/ScrollBar/XTPScrollBarCtrl.h" #include "Common/XTPHookManager.h" #include "CommandBars/XTPCommandBarsDefines.h" #include "CommandBars/XTPPaintManager.h" #include "CommandBars/XTPControl.h" #include "CommandBars/ScrollBar/XTPCommandBarScrollBarCtrl.h" #include "CommandBars/XTPCommandBar.h" #include "Ribbon/Backstage/XTPRibbonBackstageView.h" #include "Ribbon/Backstage/XTPRibbonBackstagePaintManager.h" #include "Ribbon/Backstage/XTPRibbonBackstageViewThemeOffice2013.h" #include "Ribbon/Backstage/XTPRibbonBackstageViewThemeNativeWindows11.h" #include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" #ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif CXTPRibbonBackstageViewThemeNativeWindows11::CXTPRibbonBackstageViewThemeNativeWindows11() { m_clrButtonBackNormal = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonBackNormal"), RGB(255, 243, 156)); m_clrButtonBackSelected = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonBackSelected"), RGB(253, 244, 191)); m_clrButtonBackHighlighted = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonBackHighlighted"), RGB(253, 244, 191)); m_clrButtonTextNormal = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonTextNormal"), RGB(115, 97, 57)); m_clrButtonTextSelected = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonTextSelected"), RGB(115, 97, 57)); m_clrButtonTextHighlighted = XTPIniColor(_T("CommandBars.Ribbon.Backstage"), _T("ButtonTextHighlighted"), RGB(115, 97, 57)); } CXTPRibbonBackstageViewThemeNativeWindows11::~CXTPRibbonBackstageViewThemeNativeWindows11() { } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonBackNormalColor(COLORREF clr) { m_clrButtonBackNormal = clr; } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonBackSelectedColor(COLORREF clr) { m_clrButtonBackSelected = clr; } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonBackHighlightedColor(COLORREF clr) { m_clrButtonBackHighlighted = clr; } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonTextNormalColor(COLORREF clr) { m_clrButtonTextNormal = clr; } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonTextSelectedColor(COLORREF clr) { m_clrButtonTextSelected = clr; } void CXTPRibbonBackstageViewThemeNativeWindows11::SetButtonTextHighlightedColor(COLORREF clr) { m_clrButtonTextHighlighted = clr; }