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
68d3a136
Commit
68d3a136
authored
Mar 01, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Merge OLEDD_TrackMouseMove and OLEDD_TrackStateChange functions.
parent
bc2c6d39
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
33 deletions
+6
-33
ole2.c
dlls/ole32/ole2.c
+6
-33
No files found.
dlls/ole32/ole2.c
View file @
68d3a136
...
...
@@ -157,7 +157,6 @@ extern void OLEClipbrd_Initialize(void);
*/
static
void
OLEDD_Initialize
(
void
);
static
LRESULT
WINAPI
OLEDD_DragTrackerWindowProc
(
HWND
hwnd
,
UINT
uMsg
,
WPARAM
wParam
,
LPARAM
lParam
);
static
void
OLEDD_TrackMouseMove
(
TrackerWindowInfo
*
trackerInfo
);
static
void
OLEDD_TrackStateChange
(
TrackerWindowInfo
*
trackerInfo
);
static
DWORD
OLEDD_GetButtonState
(
void
);
...
...
@@ -2199,10 +2198,6 @@ static LRESULT WINAPI OLEDD_DragTrackerWindowProc(
}
case
WM_TIMER
:
case
WM_MOUSEMOVE
:
{
OLEDD_TrackMouseMove
((
TrackerWindowInfo
*
)
GetWindowLongPtrA
(
hwnd
,
0
));
break
;
}
case
WM_LBUTTONUP
:
case
WM_MBUTTONUP
:
case
WM_RBUTTONUP
:
...
...
@@ -2227,19 +2222,16 @@ static LRESULT WINAPI OLEDD_DragTrackerWindowProc(
}
/***
* OLEDD_Track
MouseMov
e()
* OLEDD_Track
StateChang
e()
*
* This method is invoked while a drag and drop operation is in effect.
* it will generate the appropriate callbacks in the drop source
* and drop target. It will also provide the expected feedback to
* the user.
*
* params:
* trackerInfo - Pointer to the structure identifying the
* drag & drop operation that is currently
* active.
*/
static
void
OLEDD_Track
MouseMov
e
(
TrackerWindowInfo
*
trackerInfo
)
static
void
OLEDD_Track
StateChang
e
(
TrackerWindowInfo
*
trackerInfo
)
{
HWND
hwndNewTarget
=
0
;
HRESULT
hr
=
S_OK
;
...
...
@@ -2252,6 +2244,10 @@ static void OLEDD_TrackMouseMove(TrackerWindowInfo* trackerInfo)
pt
.
y
=
trackerInfo
->
curMousePos
.
y
;
hwndNewTarget
=
WindowFromPoint
(
pt
);
trackerInfo
->
returnValue
=
IDropSource_QueryContinueDrag
(
trackerInfo
->
dropSource
,
trackerInfo
->
escPressed
,
trackerInfo
->
dwKeyState
);
/*
* Every time, we re-initialize the effects passed to the
* IDropTarget to the effects allowed by the source.
...
...
@@ -2375,29 +2371,6 @@ static void OLEDD_TrackMouseMove(TrackerWindowInfo* trackerInfo)
SetCursor
(
hCur
);
}
}
/***
* OLEDD_TrackStateChange()
*
* This method is invoked while a drag and drop operation is in effect.
* It is used to notify the drop target/drop source callbacks when
* the state of the keyboard or mouse button change.
*
* params:
* trackerInfo - Pointer to the structure identifying the
* drag & drop operation that is currently
* active.
*/
static
void
OLEDD_TrackStateChange
(
TrackerWindowInfo
*
trackerInfo
)
{
/*
* Ask the drop source what to do with the operation.
*/
trackerInfo
->
returnValue
=
IDropSource_QueryContinueDrag
(
trackerInfo
->
dropSource
,
trackerInfo
->
escPressed
,
trackerInfo
->
dwKeyState
);
/*
* All the return valued will stop the operation except the S_OK
...
...
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