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
e3e54cd4
Commit
e3e54cd4
authored
Jun 26, 1999
by
Noomen Hamza
Committed by
Alexandre Julliard
Jun 26, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SetCursorPos() function was called with a window coordinates
parameter.
parent
62ad0418
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
nonclient.c
windows/nonclient.c
+13
-10
No files found.
windows/nonclient.c
View file @
e3e54cd4
...
...
@@ -1939,6 +1939,9 @@ static LONG NC_StartSizeMove( WND* wndPtr, WPARAM16 wParam,
LONG
hittest
=
0
;
POINT16
pt
;
MSG
msg
;
RECT
rectWindow
;
GetWindowRect
(
wndPtr
->
hwndSelf
,
&
rectWindow
);
if
((
wParam
&
0xfff0
)
==
SC_MOVE
)
{
...
...
@@ -1954,8 +1957,8 @@ static LONG NC_StartSizeMove( WND* wndPtr, WPARAM16 wParam,
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
if
(
wndPtr
->
dwStyle
&
WS_MAXIMIZEBOX
)
rect
.
right
-=
GetSystemMetrics
(
SM_CXSIZE
)
+
1
;
pt
.
x
=
wndPtr
->
rectWindow
.
left
+
(
rect
.
right
-
rect
.
left
)
/
2
;
pt
.
y
=
wndPtr
->
rectWindow
.
top
+
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
/
2
;
pt
.
x
=
rectWindow
.
left
+
(
rect
.
right
-
rect
.
left
)
/
2
;
pt
.
y
=
rectWindow
.
top
+
rect
.
top
+
GetSystemMetrics
(
SM_CYSIZE
)
/
2
;
hittest
=
HTCAPTION
;
*
capturePoint
=
pt
;
}
...
...
@@ -1981,23 +1984,23 @@ static LONG NC_StartSizeMove( WND* wndPtr, WPARAM16 wParam,
{
case
VK_UP
:
hittest
=
HTTOP
;
pt
.
x
=
(
wndPtr
->
rectWindow
.
left
+
wndPtr
->
rectWindow
.
right
)
/
2
;
pt
.
y
=
wndPtr
->
rectWindow
.
top
+
GetSystemMetrics
(
SM_CYFRAME
)
/
2
;
pt
.
x
=
(
rectWindow
.
left
+
rectWindow
.
right
)
/
2
;
pt
.
y
=
rectWindow
.
top
+
GetSystemMetrics
(
SM_CYFRAME
)
/
2
;
break
;
case
VK_DOWN
:
hittest
=
HTBOTTOM
;
pt
.
x
=
(
wndPtr
->
rectWindow
.
left
+
wndPtr
->
rectWindow
.
right
)
/
2
;
pt
.
y
=
wndPtr
->
rectWindow
.
bottom
-
GetSystemMetrics
(
SM_CYFRAME
)
/
2
;
pt
.
x
=
(
rectWindow
.
left
+
rectWindow
.
right
)
/
2
;
pt
.
y
=
rectWindow
.
bottom
-
GetSystemMetrics
(
SM_CYFRAME
)
/
2
;
break
;
case
VK_LEFT
:
hittest
=
HTLEFT
;
pt
.
x
=
wndPtr
->
rectWindow
.
left
+
GetSystemMetrics
(
SM_CXFRAME
)
/
2
;
pt
.
y
=
(
wndPtr
->
rectWindow
.
top
+
wndPtr
->
rectWindow
.
bottom
)
/
2
;
pt
.
x
=
rectWindow
.
left
+
GetSystemMetrics
(
SM_CXFRAME
)
/
2
;
pt
.
y
=
(
rectWindow
.
top
+
rectWindow
.
bottom
)
/
2
;
break
;
case
VK_RIGHT
:
hittest
=
HTRIGHT
;
pt
.
x
=
wndPtr
->
rectWindow
.
right
-
GetSystemMetrics
(
SM_CXFRAME
)
/
2
;
pt
.
y
=
(
wndPtr
->
rectWindow
.
top
+
wndPtr
->
rectWindow
.
bottom
)
/
2
;
pt
.
x
=
rectWindow
.
right
-
GetSystemMetrics
(
SM_CXFRAME
)
/
2
;
pt
.
y
=
(
rectWindow
.
top
+
rectWindow
.
bottom
)
/
2
;
break
;
case
VK_RETURN
:
case
VK_ESCAPE
:
return
0
;
...
...
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