Dmitry Timoshkov : user: Postpone resetting SCROLL_TrackingWin untill
all notifications are sent.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jan 27 05:59:04 CST 2006
Module: wine
Branch: refs/heads/master
Commit: ac4de71f853e1b1a89792e4bce0069473c5d4cab
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=ac4de71f853e1b1a89792e4bce0069473c5d4cab
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Fri Jan 27 12:10:40 2006 +0100
user: Postpone resetting SCROLL_TrackingWin untill all notifications are sent.
---
dlls/user/scroll.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/dlls/user/scroll.c b/dlls/user/scroll.c
index 8774a88..8a64672 100644
--- a/dlls/user/scroll.c
+++ b/dlls/user/scroll.c
@@ -953,7 +953,7 @@ static void SCROLL_HandleScrollEvent( HW
{
if (SCROLL_MovingThumb)
SCROLL_DrawMovingThumb(hdc, &rect, vertical, arrowSize, thumbSize);
- SCROLL_TrackingWin = 0;
+
SCROLL_DrawInterior( hwnd, hdc, nBar, &rect, arrowSize, thumbSize,
thumbPos, infoPtr->flags, vertical,
FALSE, FALSE );
@@ -1049,8 +1049,12 @@ static void SCROLL_HandleScrollEvent( HW
SendMessageW( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
MAKEWPARAM( SB_THUMBPOSITION, val ), (LPARAM)hwndCtl );
}
+ /* SB_ENDSCROLL doesn't report thumb position */
SendMessageW( hwndOwner, vertical ? WM_VSCROLL : WM_HSCROLL,
SB_ENDSCROLL, (LPARAM)hwndCtl );
+
+ /* Terminate tracking */
+ SCROLL_TrackingWin = 0;
}
ReleaseDC( hwnd, hdc );
@@ -1200,6 +1204,10 @@ static BOOL SCROLL_GetScrollInfo(HWND hw
info->nMax = infoPtr->maxVal;
}
+ TRACE("cbSize %02x fMask %04x nMin %d nMax %d nPage %u nPos %d nTrackPos %d\n",
+ info->cbSize, info->fMask, info->nMin, info->nMax, info->nPage,
+ info->nPos, info->nTrackPos);
+
return (info->fMask & SIF_ALL) != 0;
}
More information about the wine-cvs
mailing list