From f4afb5676f59532557e9d7a4aee45575d372d89c Mon Sep 17 00:00:00 2001 From: twanvl Date: Wed, 5 Jan 2011 21:26:16 +0000 Subject: [PATCH] setting "explorer" style messes with the function of the scrollbar git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1579 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/gui/util.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/util.cpp b/src/gui/util.cpp index d4725083..93c2b13c 100644 --- a/src/gui/util.cpp +++ b/src/gui/util.cpp @@ -340,8 +340,8 @@ void draw_radiobox(Window* win, DC& dc, const wxRect& rect, bool checked, bool e } void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool selected, bool focused, bool hot) { - #if wxUSE_UXTHEME && defined(__WXMSW__) - #if WINVER <= 0x0500 + #if wxUSE_UXTHEME && defined(__WXMSW__) && 1 + #if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN #define LISS_NORMAL LIS_NORMAL #define LISS_SELECTED LIS_SELECTED #define LISS_SELECTEDNOTFOCUS LIS_SELECTEDNOTFOCUS @@ -357,7 +357,7 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele r.right = rect.x + rect.width; r.bottom = rect.y + rect.height; if (hTheme) { - wxUxThemeEngine::Get()->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); + //wxUxThemeEngine::Get()->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); wxUxThemeEngine::Get()->DrawThemeBackground( (HTHEME)hTheme, (HDC)dc.GetHDC(),