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
90ba8ceb
Commit
90ba8ceb
authored
Oct 12, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Correctly handle mouse events on a size grip scrollbar.
parent
299f2b35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
scroll.c
dlls/user32/scroll.c
+15
-0
No files found.
dlls/user32/scroll.c
View file @
90ba8ceb
...
...
@@ -1426,6 +1426,13 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
case
WM_LBUTTONDBLCLK
:
case
WM_LBUTTONDOWN
:
if
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
SBS_SIZEGRIP
)
{
SendMessageW
(
GetParent
(
hwnd
),
WM_SYSCOMMAND
,
SC_SIZE
+
((
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
?
WMSZ_BOTTOMLEFT
:
WMSZ_BOTTOMRIGHT
),
lParam
);
}
else
{
POINT
pt
;
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
...
...
@@ -1519,6 +1526,14 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
}
break
;
case
WM_SETCURSOR
:
if
(
GetWindowLongW
(
hwnd
,
GWL_STYLE
)
&
SBS_SIZEGRIP
)
{
ULONG_PTR
cursor
=
(
GetWindowLongW
(
hwnd
,
GWL_EXSTYLE
)
&
WS_EX_LAYOUTRTL
)
?
IDC_SIZENESW
:
IDC_SIZENWSE
;
return
(
LRESULT
)
SetCursor
(
LoadCursorA
(
0
,
(
LPSTR
)
cursor
));
}
return
DefWindowProcW
(
hwnd
,
message
,
wParam
,
lParam
);
case
SBM_SETPOS
:
return
SetScrollPos
(
hwnd
,
SB_CTL
,
wParam
,
(
BOOL
)
lParam
);
...
...
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