*/
#include "uxthemep.h"
-#include <wine/debug.h>
-WINE_DEFAULT_DEBUG_CHANNEL(uxtheme);
+#include <assert.h>
static BOOL SCROLL_trackVertical;
static enum SCROLL_HITTEST SCROLL_trackHitTest;
static INT SCROLL_TrackingPos = 0;
static INT SCROLL_TrackingVal = 0;
-void static ScreenToWindow( HWND hWnd, POINT* pt)
+static void ScreenToWindow( HWND hWnd, POINT* pt)
{
RECT rcWnd;
GetWindowRect(hWnd, &rcWnd);
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)
{
{
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;