Files
wxWidgets/src/msw/systhemectrl.cpp
Tobias Taschner ddceaab001 Remove MSW wxUxThemeEngine class
This undocumented "private" class was used for various windows UxTheme
functions which are available since WinXP. As wxWidgets 3.1 is XP+ it
does not make sense anymore to load the theme functions dynamically.
2018-01-22 00:51:11 +01:00

33 lines
948 B
C++

/////////////////////////////////////////////////////////////////////////////
// Name: src/msw/systhemectrl.cpp
// Purpose: wxMSW implementation of wxSystemThemedControl
// Author: Tobias Taschner
// Created: 2015-09-15
// Copyright: (c) 2015 wxWidgets development team
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/systhemectrl.h"
#include "wx/msw/private.h"
#include "wx/msw/uxtheme.h"
#ifdef wxHAS_SYSTEM_THEMED_CONTROL
void wxSystemThemedControlBase::DoEnableSystemTheme(bool enable, wxWindow* window)
{
if ( wxGetWinVersion() >= wxWinVersion_Vista && wxUxThemeIsActive() )
{
const wchar_t* const sysThemeId = enable ? L"EXPLORER" : NULL;
::SetWindowTheme(GetHwndOf(window), sysThemeId, NULL);
}
}
#endif // wxHAS_SYSTEM_THEMED_CONTROL