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
f7f7bd0c
Commit
f7f7bd0c
authored
Jun 24, 2003
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISvItemCm_fnInvokeCommand: added support for "delete" command.
parent
f6a70969
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+27
-1
No files found.
dlls/shell32/shv_item_cmenu.c
View file @
f7f7bd0c
...
@@ -428,30 +428,56 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
...
@@ -428,30 +428,56 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
{
{
ICOM_THIS
(
ItemCmImpl
,
iface
);
ICOM_THIS
(
ItemCmImpl
,
iface
);
if
(
lpcmi
->
cbSize
!=
sizeof
(
CMINVOKECOMMANDINFO
))
FIXME
(
"Is an EX structure
\n
"
);
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%p)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
TRACE
(
"(%p)->(invcom=%p verb=%p wnd=%p)
\n
"
,
This
,
lpcmi
,
lpcmi
->
lpVerb
,
lpcmi
->
hwnd
);
if
(
LOWORD
(
lpcmi
->
lpVerb
)
>
FCIDM_SHVIEWLAST
)
return
E_INVALIDARG
;
if
(
HIWORD
(
lpcmi
->
lpVerb
)
==
0
&&
LOWORD
(
lpcmi
->
lpVerb
)
>
FCIDM_SHVIEWLAST
)
{
TRACE
(
"Invalid Verb %x
\n
"
,
LOWORD
(
lpcmi
->
lpVerb
));
return
E_INVALIDARG
;
}
if
(
HIWORD
(
lpcmi
->
lpVerb
)
==
0
)
{
switch
(
LOWORD
(
lpcmi
->
lpVerb
))
switch
(
LOWORD
(
lpcmi
->
lpVerb
))
{
{
case
FCIDM_SHVIEW_EXPLORE
:
case
FCIDM_SHVIEW_EXPLORE
:
TRACE
(
"Verb FCIDM_SHVIEW_EXPLORE
\n
"
);
DoOpenExplore
(
iface
,
lpcmi
->
hwnd
,
"explore"
);
DoOpenExplore
(
iface
,
lpcmi
->
hwnd
,
"explore"
);
break
;
break
;
case
FCIDM_SHVIEW_OPEN
:
case
FCIDM_SHVIEW_OPEN
:
TRACE
(
"Verb FCIDM_SHVIEW_OPEN
\n
"
);
DoOpenExplore
(
iface
,
lpcmi
->
hwnd
,
"open"
);
DoOpenExplore
(
iface
,
lpcmi
->
hwnd
,
"open"
);
break
;
break
;
case
FCIDM_SHVIEW_RENAME
:
case
FCIDM_SHVIEW_RENAME
:
TRACE
(
"Verb FCIDM_SHVIEW_RENAME
\n
"
);
DoRename
(
iface
,
lpcmi
->
hwnd
);
DoRename
(
iface
,
lpcmi
->
hwnd
);
break
;
break
;
case
FCIDM_SHVIEW_DELETE
:
case
FCIDM_SHVIEW_DELETE
:
TRACE
(
"Verb FCIDM_SHVIEW_DELETE
\n
"
);
DoDelete
(
iface
);
DoDelete
(
iface
);
break
;
break
;
case
FCIDM_SHVIEW_COPY
:
case
FCIDM_SHVIEW_COPY
:
TRACE
(
"Verb FCIDM_SHVIEW_COPY
\n
"
);
DoCopyOrCut
(
iface
,
lpcmi
->
hwnd
,
FALSE
);
DoCopyOrCut
(
iface
,
lpcmi
->
hwnd
,
FALSE
);
break
;
break
;
case
FCIDM_SHVIEW_CUT
:
case
FCIDM_SHVIEW_CUT
:
TRACE
(
"Verb FCIDM_SHVIEW_CUT
\n
"
);
DoCopyOrCut
(
iface
,
lpcmi
->
hwnd
,
TRUE
);
DoCopyOrCut
(
iface
,
lpcmi
->
hwnd
,
TRUE
);
break
;
break
;
default:
FIXME
(
"Unhandled Verb %xl
\n
"
,
LOWORD
(
lpcmi
->
lpVerb
));
}
}
else
{
TRACE
(
"Verb is %s
\n
"
,
debugstr_a
(
lpcmi
->
lpVerb
));
if
(
strcmp
(
lpcmi
->
lpVerb
,
"delete"
)
==
0
)
DoDelete
(
iface
);
else
FIXME
(
"Unhandled string verb %s
\n
"
,
debugstr_a
(
lpcmi
->
lpVerb
));
}
}
return
NOERROR
;
return
NOERROR
;
}
}
...
...
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