From a2fc6201e1d7baafcdc026df41191d2fd75c9778 Mon Sep 17 00:00:00 2001 From: James Tabor Date: Wed, 16 Sep 2015 08:12:52 +0000 Subject: [PATCH] [UxTheme] - Fix user side GetScrollBarInfo. See CORE-9225. svn path=/trunk/; revision=69253 --- reactos/dll/win32/uxtheme/ncscrollbar.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/uxtheme/ncscrollbar.c b/reactos/dll/win32/uxtheme/ncscrollbar.c index 69f34cd2bb2..9b3527c8daf 100644 --- a/reactos/dll/win32/uxtheme/ncscrollbar.c +++ b/reactos/dll/win32/uxtheme/ncscrollbar.c @@ -288,10 +288,8 @@ ThemeDrawScrollBar(PDRAW_CONTEXT pcontext, INT nBar, POINT* pt) sbi.xyThumbTop = 0; } -#ifndef ROS_SUCKS /* The scrollbar rect is in screen coordinates */ -// OffsetRect(&sbi.rcScrollBar, -pcontext->wi.rcWindow.left, -pcontext->wi.rcWindow.top); -#endif + OffsetRect(&sbi.rcScrollBar, -pcontext->wi.rcWindow.left, -pcontext->wi.rcWindow.top); if(pt) { @@ -401,10 +399,8 @@ SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt) return; } -#ifndef ROS_SUCKS /* The scrollbar rect is in screen coordinates */ -// OffsetRect(&sbi.rcScrollBar, -context.wi.rcWindow.left, -context.wi.rcWindow.top); -#endif + OffsetRect(&sbi.rcScrollBar, -context.wi.rcWindow.left, -context.wi.rcWindow.top); if ((SCROLL_trackHitTest == SCROLL_NOWHERE) && (msg != WM_LBUTTONDOWN)) return;