[UxTheme]
[reactos.git] / reactos / dll / win32 / uxtheme / ncscrollbar.c
index 6774580..9b3527c 100644 (file)
@@ -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)
     {
@@ -400,16 +398,15 @@ SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
     {
         return;
     }
-    ThemeInitDrawContext(&context, hwnd, 0);
 
-#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;
     
+    ThemeInitDrawContext(&context, hwnd, 0);
+
     hwndOwner = (nBar == SB_CTL) ? GetParent(hwnd) : hwnd;
     hwndCtl   = (nBar == SB_CTL) ? hwnd : 0;