Commit d761a125 authored by twanvl's avatar twanvl

setting "explorer" style messes with the function of the scrollbar

parent efa8c0d1
...@@ -340,8 +340,8 @@ void draw_radiobox(Window* win, DC& dc, const wxRect& rect, bool checked, bool e ...@@ -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) { void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool selected, bool focused, bool hot) {
#if wxUSE_UXTHEME && defined(__WXMSW__) #if wxUSE_UXTHEME && defined(__WXMSW__) && 1
#if WINVER <= 0x0500 #if !defined(NTDDI_LONGHORN) || NTDDI_VERSION < NTDDI_LONGHORN
#define LISS_NORMAL LIS_NORMAL #define LISS_NORMAL LIS_NORMAL
#define LISS_SELECTED LIS_SELECTED #define LISS_SELECTED LIS_SELECTED
#define LISS_SELECTEDNOTFOCUS LIS_SELECTEDNOTFOCUS #define LISS_SELECTEDNOTFOCUS LIS_SELECTEDNOTFOCUS
...@@ -357,7 +357,7 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele ...@@ -357,7 +357,7 @@ void draw_selection_rectangle(Window* win, DC& dc, const wxRect& rect, bool sele
r.right = rect.x + rect.width; r.right = rect.x + rect.width;
r.bottom = rect.y + rect.height; r.bottom = rect.y + rect.height;
if (hTheme) { if (hTheme) {
wxUxThemeEngine::Get()->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL); //wxUxThemeEngine::Get()->SetWindowTheme((HWND)win->GetHWND(), L"Explorer", NULL);
wxUxThemeEngine::Get()->DrawThemeBackground( wxUxThemeEngine::Get()->DrawThemeBackground(
(HTHEME)hTheme, (HTHEME)hTheme,
(HDC)dc.GetHDC(), (HDC)dc.GetHDC(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment