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
4a464ef0
Commit
4a464ef0
authored
Oct 25, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleview: Properly handle negative coordinates for mouse events.
parent
7d8ef2e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pane.c
programs/oleview/pane.c
+5
-5
No files found.
programs/oleview/pane.c
View file @
4a464ef0
...
...
@@ -73,11 +73,11 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SetCursor
(
LoadCursor
(
0
,
IDC_SIZEWE
));
break
;
case
WM_LBUTTONDOWN
:
if
(
LOWORD
(
lParam
)
>=
GetSplitPos
(
hWnd
)
-
pane
->
size
/
2
&&
LOWORD
(
lParam
)
<=
GetSplitPos
(
hWnd
)
+
pane
->
size
/
2
)
if
(
(
short
)
LOWORD
(
lParam
)
>=
GetSplitPos
(
hWnd
)
-
pane
->
size
/
2
&&
(
short
)
LOWORD
(
lParam
)
<=
GetSplitPos
(
hWnd
)
+
pane
->
size
/
2
)
{
pane
->
last
=
-
1
;
DrawSplitMoving
(
hWnd
,
LOWORD
(
lParam
));
DrawSplitMoving
(
hWnd
,
(
short
)
LOWORD
(
lParam
));
SetCapture
(
hWnd
);
}
break
;
...
...
@@ -85,7 +85,7 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
if
(
GetCapture
()
==
hWnd
)
{
pane
->
last
=
-
1
;
DrawSplitMoving
(
hWnd
,
LOWORD
(
lParam
));
DrawSplitMoving
(
hWnd
,
(
short
)
LOWORD
(
lParam
));
MoveWindow
(
pane
->
left
,
0
,
0
,
GetSplitPos
(
hWnd
)
-
pane
->
size
/
2
,
pane
->
height
,
TRUE
);
...
...
@@ -97,7 +97,7 @@ LRESULT CALLBACK PaneProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break
;
case
WM_MOUSEMOVE
:
if
(
GetCapture
()
==
hWnd
)
DrawSplitMoving
(
hWnd
,
LOWORD
(
lParam
));
DrawSplitMoving
(
hWnd
,
(
short
)
LOWORD
(
lParam
));
break
;
case
WM_NOTIFY
:
if
((
int
)
wParam
!=
TYPELIB_TREE
)
break
;
...
...
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