Commit 49c7aff2 authored by Bobby Bingham's avatar Bobby Bingham Committed by Alexandre Julliard

When you hold the left mouse button inside the scrollbar, then move

the mouse off so it stops scrolling, and return the mouse, it should continue scrolling.
parent 1a8b3399
/* /*
* Scrollbar control * Scrollbar control
* *
* Copyright 1993 Martin Ayotte * Copyright 1993 Martin Ayotte
...@@ -49,7 +49,7 @@ static HBITMAP hRgArrowI; ...@@ -49,7 +49,7 @@ static HBITMAP hRgArrowI;
/* Minimum size of the rectangle between the arrows */ /* Minimum size of the rectangle between the arrows */
#define SCROLL_MIN_RECT 4 #define SCROLL_MIN_RECT 4
/* Minimum size of the thumb in pixels */ /* Minimum size of the thumb in pixels */
#define SCROLL_MIN_THUMB 6 #define SCROLL_MIN_THUMB 6
...@@ -100,7 +100,7 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, ...@@ -100,7 +100,7 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar,
BOOL fShowH, BOOL fShowV ); BOOL fShowH, BOOL fShowV );
static INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar, static INT SCROLL_SetScrollInfo( HWND hwnd, INT nBar,
const SCROLLINFO *info, INT *action ); const SCROLLINFO *info, INT *action );
static void SCROLL_DrawInterior_9x( HWND hwnd, HDC hdc, INT nBar, static void SCROLL_DrawInterior_9x( HWND hwnd, HDC hdc, INT nBar,
RECT *rect, INT arrowSize, RECT *rect, INT arrowSize,
INT thumbSize, INT thumbPos, INT thumbSize, INT thumbPos,
UINT flags, BOOL vertical, UINT flags, BOOL vertical,
...@@ -994,10 +994,10 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt) ...@@ -994,10 +994,10 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
{ {
SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL, SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
SB_PAGEUP, hwndCtl ); SB_PAGEUP, hwndCtl );
SetSystemTimer( hwnd, SCROLL_TIMER, (msg == WM_LBUTTONDOWN) ?
SCROLL_FIRST_DELAY : SCROLL_REPEAT_DELAY,
(TIMERPROC)0 );
} }
SetSystemTimer( hwnd, SCROLL_TIMER, (msg == WM_LBUTTONDOWN) ?
SCROLL_FIRST_DELAY : SCROLL_REPEAT_DELAY,
(TIMERPROC)0 );
} }
else KillSystemTimer( hwnd, SCROLL_TIMER ); else KillSystemTimer( hwnd, SCROLL_TIMER );
break; break;
...@@ -1049,7 +1049,7 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt) ...@@ -1049,7 +1049,7 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
} }
} }
break; break;
case SCROLL_BOTTOM_RECT: case SCROLL_BOTTOM_RECT:
SCROLL_DrawInterior( hwnd, hdc, nBar, &rect, arrowSize, thumbSize, SCROLL_DrawInterior( hwnd, hdc, nBar, &rect, arrowSize, thumbSize,
thumbPos, infoPtr->flags, vertical, thumbPos, infoPtr->flags, vertical,
...@@ -1060,14 +1060,14 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt) ...@@ -1060,14 +1060,14 @@ void SCROLL_HandleScrollEvent( HWND hwnd, INT nBar, UINT msg, POINT pt)
{ {
SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL, SendMessageA( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
SB_PAGEDOWN, hwndCtl ); SB_PAGEDOWN, hwndCtl );
SetSystemTimer( hwnd, SCROLL_TIMER, (msg == WM_LBUTTONDOWN) ?
SCROLL_FIRST_DELAY : SCROLL_REPEAT_DELAY,
(TIMERPROC)0 );
} }
SetSystemTimer( hwnd, SCROLL_TIMER, (msg == WM_LBUTTONDOWN) ?
SCROLL_FIRST_DELAY : SCROLL_REPEAT_DELAY,
(TIMERPROC)0 );
} }
else KillSystemTimer( hwnd, SCROLL_TIMER ); else KillSystemTimer( hwnd, SCROLL_TIMER );
break; break;
case SCROLL_BOTTOM_ARROW: case SCROLL_BOTTOM_ARROW:
SCROLL_DrawArrows( hdc, infoPtr, &rect, arrowSize, vertical, SCROLL_DrawArrows( hdc, infoPtr, &rect, arrowSize, vertical,
FALSE, (hittest == SCROLL_trackHitTest) ); FALSE, (hittest == SCROLL_trackHitTest) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment