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
7d8ef2e1
Commit
7d8ef2e1
authored
Oct 25, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Properly handle negative coordinates for mouse events.
parent
ff068c08
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
13 deletions
+13
-13
button.c
dlls/user/button.c
+2
-2
combo.c
dlls/user/combo.c
+4
-4
listbox.c
dlls/user/listbox.c
+2
-2
menu.c
dlls/user/menu.c
+1
-1
message.c
dlls/user/message.c
+2
-2
win.c
dlls/user/win.c
+2
-2
No files found.
dlls/user/button.c
View file @
7d8ef2e1
...
...
@@ -227,8 +227,8 @@ static LRESULT WINAPI ButtonWndProc_common(HWND hWnd, UINT uMsg,
LONG
state
;
HANDLE
oldHbitmap
;
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
switch
(
uMsg
)
{
...
...
dlls/user/combo.c
View file @
7d8ef2e1
...
...
@@ -1703,8 +1703,8 @@ static void COMBO_LButtonDown( LPHEADCOMBO lphc, LPARAM lParam )
BOOL
bButton
;
HWND
hWnd
=
lphc
->
self
;
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
bButton
=
PtInRect
(
&
lphc
->
buttonRect
,
pt
);
if
(
(
CB_GETTYPE
(
lphc
)
==
CBS_DROPDOWNLIST
)
||
...
...
@@ -1780,8 +1780,8 @@ static void COMBO_MouseMove( LPHEADCOMBO lphc, WPARAM wParam, LPARAM lParam )
POINT
pt
;
RECT
lbRect
;
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
if
(
lphc
->
wState
&
CBF_BUTTONDOWN
)
{
...
...
dlls/user/listbox.c
View file @
7d8ef2e1
...
...
@@ -2732,8 +2732,8 @@ static LRESULT WINAPI ListBoxWndProc_common( HWND hwnd, UINT msg,
POINT
pt
;
RECT
rect
;
pt
.
x
=
LOWORD
(
lParam
);
pt
.
y
=
HIWORD
(
lParam
);
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
rect
.
left
=
0
;
rect
.
top
=
0
;
rect
.
right
=
descr
->
width
;
...
...
dlls/user/menu.c
View file @
7d8ef2e1
...
...
@@ -1771,7 +1771,7 @@ static BOOL MENU_ShowPopup( HWND hwndOwner, HMENU hmenu, UINT id,
INT
x
,
INT
y
,
INT
xanchor
,
INT
yanchor
)
{
POPUPMENU
*
menu
;
U
INT
width
,
height
;
INT
width
,
height
;
POINT
pt
;
HMONITOR
monitor
;
MONITORINFO
info
;
...
...
dlls/user/message.c
View file @
7d8ef2e1
...
...
@@ -2785,8 +2785,8 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
}
thread_info
->
GetMessageTimeVal
=
msg
.
time
;
msg
.
pt
.
x
=
LOWORD
(
thread_info
->
GetMessagePosVal
);
msg
.
pt
.
y
=
HIWORD
(
thread_info
->
GetMessagePosVal
);
msg
.
pt
.
x
=
(
short
)
LOWORD
(
thread_info
->
GetMessagePosVal
);
msg
.
pt
.
y
=
(
short
)
HIWORD
(
thread_info
->
GetMessagePosVal
);
HOOK_CallHooks
(
WH_GETMESSAGE
,
HC_ACTION
,
flags
&
PM_REMOVE
,
(
LPARAM
)
&
msg
,
TRUE
);
...
...
dlls/user/win.c
View file @
7d8ef2e1
...
...
@@ -3023,8 +3023,8 @@ BOOL WINAPI DragDetect( HWND hWnd, POINT pt )
if
(
msg
.
message
==
WM_MOUSEMOVE
)
{
POINT
tmp
;
tmp
.
x
=
LOWORD
(
msg
.
lParam
);
tmp
.
y
=
HIWORD
(
msg
.
lParam
);
tmp
.
x
=
(
short
)
LOWORD
(
msg
.
lParam
);
tmp
.
y
=
(
short
)
HIWORD
(
msg
.
lParam
);
if
(
!
PtInRect
(
&
rect
,
tmp
))
{
ReleaseCapture
();
...
...
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