From 73696326a363db6e26cd22bc3f83cd97b41a40db Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Mon, 27 Mar 2017 19:56:36 +0000 Subject: [PATCH] [UXTHEME] -Fix drawing the themed scrollbar. CORE-12933 svn path=/trunk/; revision=74234 --- reactos/dll/win32/uxtheme/ncscrollbar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reactos/dll/win32/uxtheme/ncscrollbar.c b/reactos/dll/win32/uxtheme/ncscrollbar.c index 23554b32cef..62d6da7e0a2 100644 --- a/reactos/dll/win32/uxtheme/ncscrollbar.c +++ b/reactos/dll/win32/uxtheme/ncscrollbar.c @@ -182,14 +182,18 @@ static void SCROLL_DrawInterior( PDRAW_CONTEXT pcontext, SCROLLBARINFO* psbi, { RECT r, rcPart; + /* thumbPos is relative to the edge of the scrollbar */ + r = psbi->rcScrollBar; if (vertical) { + thumbPos += pcontext->wi.rcClient.top - pcontext->wi.rcWindow.top; r.top += psbi->dxyLineButton; r.bottom -= (psbi->dxyLineButton); } else { + thumbPos += pcontext->wi.rcClient.left - pcontext->wi.rcWindow.left; r.left += psbi->dxyLineButton; r.right -= psbi->dxyLineButton; }