[SHELL32] Implement SHBrowseForFolder items contextmenu (#6952)

* [SHELL32] Implement SHBrowseForFolder items contextmenu

CORE-16944 CORE-19597
This commit is contained in:
Whindmar Saksit 2024-05-30 17:53:44 +02:00 committed by GitHub
parent 6d7648d723
commit 3da9e7e251
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 250 additions and 0 deletions

View file

@ -80,6 +80,16 @@ static const struct _StaticInvokeCommandMap_
{ "moveto", FCIDM_SHVIEW_MOVETO },
};
UINT MapVerbToDfmCmd(_In_ LPCSTR verba)
{
for (UINT i = 0; i < _countof(g_StaticInvokeCmdMap); ++i)
{
if (!lstrcmpiA(g_StaticInvokeCmdMap[i].szStringVerb, verba))
return (int)g_StaticInvokeCmdMap[i].DfmCmd;
}
return 0;
}
class CDefaultContextMenu :
public CComObjectRootEx<CComMultiThreadModelNoCS>,
public IContextMenu3,