/** * @file XTPComboBoxThemeVisualStudio2010.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/XTPMarkupRender.h" #include "Common/XTPColorManager.h" #include "Controls/Util/XTPControlTheme.h" #include "Controls/Combo/XTPComboBoxTheme.h" #include "Controls/Combo/Themes/XTPComboBoxThemeOffice2003.h" #include "Controls/Combo/Themes/XTPComboBoxThemeVisualStudio.h" #include "Controls/Combo/Themes/XTPComboBoxThemeVisualStudio2010.h" #include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" #ifdef _DEBUG # undef THIS_FILE static char THIS_FILE[] = __FILE__; # define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CXTPComboBoxThemeVisualStudio2010::CXTPComboBoxThemeVisualStudio2010() { m_bHighlight = TRUE; } CXTPComboBoxThemeVisualStudio2010::~CXTPComboBoxThemeVisualStudio2010() { } void CXTPComboBoxThemeVisualStudio2010::RefreshMetrics(CXTPComboBox* pComboBox) { CXTPComboBoxTheme::RefreshMetrics(pComboBox); m_clrBorderNormal.SetStandardValue(RGB(133, 145, 162)); m_clrBorderHot.SetStandardValue(RGB(229, 195, 101)); m_clrBorderDisabled.SetStandardValue(RGB(164, 173, 186)); m_clrButtonNormal.SetStandardValue(RGB(241, 243, 248)); m_grcButton = RGB(255, 255, 255); m_grcButtonHilite.SetStandardValue(RGB(255, 252, 242), RGB(255, 236, 181)); m_grcButtonPushed = RGB(255, 232, 166); m_clrButtonArrowNormal.SetStandardValue(RGB(27, 41, 62)); m_clrButtonArrowPressed.SetStandardValue(RGB(27, 41, 62)); }