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
de0813c7
Commit
de0813c7
authored
Jan 10, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Get rid of rename helper.
parent
48eba803
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
25 deletions
+18
-25
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+18
-25
No files found.
dlls/shell32/shv_item_cmenu.c
View file @
de0813c7
...
...
@@ -260,29 +260,6 @@ static void DoOpenExplore(ItemCmImpl *This, HWND hwnd, LPCSTR verb)
}
/**************************************************************************
* DoRename
*/
static
void
DoRename
(
ItemCmImpl
*
This
,
HWND
hwnd
)
{
LPSHELLBROWSER
lpSB
;
LPSHELLVIEW
lpSV
;
TRACE
(
"(%p)->(wnd=%p)
\n
"
,
This
,
hwnd
);
/* get the active IShellView */
if
((
lpSB
=
(
LPSHELLBROWSER
)
SendMessageA
(
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
)))
{
if
(
SUCCEEDED
(
IShellBrowser_QueryActiveShellView
(
lpSB
,
&
lpSV
)))
{
TRACE
(
"(sv=%p)
\n
"
,
lpSV
);
IShellView_SelectItem
(
lpSV
,
This
->
apidl
[
0
],
SVSI_DESELECTOTHERS
|
SVSI_EDIT
|
SVSI_ENSUREVISIBLE
|
SVSI_FOCUSED
|
SVSI_SELECT
);
IShellView_Release
(
lpSV
);
}
}
}
/**************************************************************************
* DoDelete
*
* deletes the currently selected items
...
...
@@ -479,9 +456,25 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
DoOpenExplore
(
This
,
lpcmi
->
hwnd
,
"open"
);
break
;
case
FCIDM_SHVIEW_RENAME
:
TRACE
(
"Verb FCIDM_SHVIEW_RENAME
\n
"
);
DoRename
(
This
,
lpcmi
->
hwnd
);
{
IShellBrowser
*
browser
;
/* get the active IShellView */
browser
=
(
IShellBrowser
*
)
SendMessageA
(
lpcmi
->
hwnd
,
CWM_GETISHELLBROWSER
,
0
,
0
);
if
(
browser
)
{
IShellView
*
view
;
if
(
SUCCEEDED
(
IShellBrowser_QueryActiveShellView
(
browser
,
&
view
)))
{
TRACE
(
"(shellview=%p)
\n
"
,
view
);
IShellView_SelectItem
(
view
,
This
->
apidl
[
0
],
SVSI_DESELECTOTHERS
|
SVSI_EDIT
|
SVSI_ENSUREVISIBLE
|
SVSI_FOCUSED
|
SVSI_SELECT
);
IShellView_Release
(
view
);
}
}
break
;
}
case
FCIDM_SHVIEW_DELETE
:
TRACE
(
"Verb FCIDM_SHVIEW_DELETE
\n
"
);
DoDelete
(
This
);
...
...
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