Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e7165b39
Commit
e7165b39
authored
Mar 25, 2010
by
Sébastien Ramage
Committed by
Alexandre Julliard
Mar 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: End scrollbar tracking if the mouse capture is lost.
parent
81575421
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
scroll.c
dlls/user32/scroll.c
+1
-1
scroll.c
dlls/user32/tests/scroll.c
+15
-1
No files found.
dlls/user32/scroll.c
View file @
e7165b39
...
...
@@ -1129,7 +1129,7 @@ void SCROLL_TrackScrollBar( HWND hwnd, INT scrollbar, POINT pt )
ReleaseCapture
();
break
;
}
}
while
(
msg
.
message
!=
WM_LBUTTONUP
);
}
while
(
msg
.
message
!=
WM_LBUTTONUP
&&
GetCapture
()
==
hwnd
);
}
...
...
dlls/user32/tests/scroll.c
View file @
e7165b39
...
...
@@ -42,12 +42,25 @@ static LRESULT CALLBACK MyWndProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
case
WM_DESTROY
:
PostQuitMessage
(
0
);
break
;
case
WM_HSCROLL
:
case
WM_VSCROLL
:
/* stop tracking */
ReleaseCapture
();
return
0
;
default:
return
DefWindowProcA
(
hWnd
,
msg
,
wParam
,
lParam
);
}
return
0
;
}
static
void
scrollbar_test_track
(
void
)
{
/* test that scrollbar tracking is terminated when
* the control looses mouse capture */
SendMessage
(
hScroll
,
WM_LBUTTONDOWN
,
0
,
MAKELPARAM
(
1
,
1
));
/* a normal return from the sendmessage */
/* not normal for instance by closing the windws */
ok
(
IsWindow
(
hScroll
),
"Scrollbar has gone!
\n
"
);
}
static
void
scrollbar_test1
(
void
)
{
...
...
@@ -420,6 +433,7 @@ START_TEST ( scroll )
scrollbar_test2
();
scrollbar_test3
();
scrollbar_test4
();
scrollbar_test_track
();
/* Some test results vary depending of theming being active or not */
hUxtheme
=
LoadLibraryA
(
"uxtheme.dll"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment