mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 09:22:55 +00:00
[SHELL32] Implement the desktop folder menu for Explorer tree (#7026)
Enumerates but does not actually allow you to get CF_HDROP if the desktop PIDL is present in the dataobject.
This commit is contained in:
parent
674136bcd0
commit
63935f857f
6 changed files with 57 additions and 24 deletions
|
@ -945,7 +945,7 @@ BrFolder_OnContextMenu(BrFolder &info, LPARAM lParam)
|
|||
return;
|
||||
info.pContextMenu = pcm;
|
||||
UINT cmf = ((GetKeyState(VK_SHIFT) < 0) ? CMF_EXTENDEDVERBS : 0) | CMF_CANRENAME;
|
||||
hr = pcm->QueryContextMenu(hMenu, 0, ID_FIRSTCMD, ID_LASTCMD, CMF_NODEFAULT | cmf);
|
||||
hr = pcm->QueryContextMenu(hMenu, 0, ID_FIRSTCMD, ID_LASTCMD, CMF_EXPLORE | cmf);
|
||||
if (hr > 0)
|
||||
_InsertMenuItemW(hMenu, 0, TRUE, 0, MFT_SEPARATOR, NULL, 0);
|
||||
_InsertMenuItemW(hMenu, 0, TRUE, IDC_TOGGLE, MFT_STRING,
|
||||
|
@ -961,8 +961,7 @@ BrFolder_OnContextMenu(BrFolder &info, LPARAM lParam)
|
|||
}
|
||||
else if (cmd != 0 && GetDfmCmd(pcm, ici.lpVerb) == DFM_CMD_RENAME)
|
||||
{
|
||||
TreeView_SelectItem(info.hwndTreeView, hSelected);
|
||||
TreeView_EditLabel(info.hwndTreeView, hSelected);
|
||||
BrFolder_Rename(&info, hSelected);
|
||||
}
|
||||
else if (cmd != 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue