///////////////////////////////////////////////////////////////////////////// // 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