/** * @file XTPPopupThemeResource.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/XTPFramework.h" #include "Common/XTPSystemHelpers.h" #include "Common/XTPSynchro.h" #include "Common/XTPApplication.h" #include "Common/XTPSingleton.h" #include "Common/XTPGdiObjects.h" #include "Common/XTPResourceImage.h" #include "Common/XTPColorManager.h" #include "Controls/Popup/XTPPopupPaintManager.h" #include "Controls/Popup/Themes/XTPPopupThemeOffice2000.h" #include "Controls/Popup/Themes/XTPPopupThemeOfficeXP.h" #include "Controls/Popup/Themes/XTPPopupThemeOffice2003.h" #include "Controls/Popup/Themes/XTPPopupThemeResource.h" #include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" #ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ////////////////////////////////////////////////////////////////////////// // CXTPPopupThemeResource CXTPPopupThemeResource::CXTPPopupThemeResource() { } void CXTPPopupThemeResource::RefreshMetrics() { CXTPPopupThemeOffice2003::RefreshMetrics(); CXTPResourceImages* pImages = XTPResourceImages(); m_clrBackground.SetStandardValue(pImages->GetImageColor(_T("PopupControl"), _T("BackgroundLight")), pImages->GetImageColor(_T("PopupControl"), _T("BackgroundDark"))); m_clrGripper.SetStandardValue(pImages->GetImageColor(_T("PopupControl"), _T("CaptionLight")), pImages->GetImageColor(_T("PopupControl"), _T("CaptionDark"))); m_clrFrame.SetStandardValue(pImages->GetImageColor(_T("PopupControl"), _T("FrameBorder"))); m_clrText = pImages->GetImageColor(_T("PopupControl"), _T("NormalText")); m_clrButtonSelected = pImages->GetImageColor(_T("PopupControl"), _T("ButtonSelected")); m_clrButtonPressed = pImages->GetImageColor(_T("PopupControl"), _T("ButtonPressed")); m_clrButtonPressedBorder.SetStandardValue( pImages->GetImageColor(_T("PopupControl"), _T("ButtonBorder"))); m_clrButtonSelectedBorder.SetStandardValue( pImages->GetImageColor(_T("PopupControl"), _T("ButtonBorder"))); }