Author: gadamopoulos
Date: Mon Mar 27 19:56:36 2017
New Revision: 74234
URL:
http://svn.reactos.org/svn/reactos?rev=74234&view=rev
Log:
[UXTHEME] -Fix drawing the themed scrollbar. CORE-12933
Modified:
trunk/reactos/dll/win32/uxtheme/ncscrollbar.c
Modified: trunk/reactos/dll/win32/uxtheme/ncscrollbar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/uxtheme/ncscroll…
==============================================================================
--- trunk/reactos/dll/win32/uxtheme/ncscrollbar.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/uxtheme/ncscrollbar.c [iso-8859-1] Mon Mar 27 19:56:36 2017
@@ -182,14 +182,18 @@
{
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;
}