Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
b49c9ac9
Commit
b49c9ac9
authored
Aug 11, 2013
by
Daniel Jelinski
Committed by
Alexandre Julliard
Aug 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Simplify cut/copy operations.
parent
ba999f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
shlview_cmenu.c
dlls/shell32/shlview_cmenu.c
+4
-16
No files found.
dlls/shell32/shlview_cmenu.c
View file @
b49c9ac9
...
...
@@ -257,29 +257,17 @@ static void DoDelete(ContextMenu *This)
*
* copies the currently selected items into the clipboard
*/
static
BOOL
DoCopyOrCut
(
ContextMenu
*
This
,
HWND
hwnd
,
BOOL
cut
)
static
void
DoCopyOrCut
(
ContextMenu
*
This
,
HWND
hwnd
,
BOOL
cut
)
{
IDataObject
*
dataobject
;
IShellBrowser
*
browser
;
IShellView
*
view
;
TRACE
(
"(%p)->(wnd=%p, cut=%d)
\n
"
,
This
,
hwnd
,
cut
);
/* get the active IShellView */
if
((
browser
=
(
IShellBrowser
*
)
SendMessageA
(
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
if
(
SUCCEEDED
(
IShellFolder_GetUIObjectOf
(
This
->
parent
,
hwnd
,
This
->
cidl
,
(
LPCITEMIDLIST
*
)
This
->
apidl
,
&
IID_IDataObject
,
0
,
(
void
**
)
&
dataobject
)))
{
if
(
SUCCEEDED
(
IShellBrowser_QueryActiveShellView
(
browser
,
&
view
)))
{
if
(
SUCCEEDED
(
IShellView_GetItemObject
(
view
,
SVGIO_SELECTION
,
&
IID_IDataObject
,
(
void
**
)
&
dataobject
)))
{
OleSetClipboard
(
dataobject
);
IDataObject_Release
(
dataobject
);
}
IShellView_Release
(
view
);
}
OleSetClipboard
(
dataobject
);
IDataObject_Release
(
dataobject
);
}
return
TRUE
;
}
/**************************************************************************
...
...
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