ReactOS 0.4.16-dev-716-g2b2bdab
CDefaultContextMenu.cpp File Reference
#include "precomp.h"
#include <compat_undoc.h>
Include dependency graph for CDefaultContextMenu.cpp:

Go to the source code of this file.

Classes

struct  _DynamicShellEntry_
 
struct  _StaticShellEntry_
 
struct  _StaticInvokeCommandMap_
 
class  CDefaultContextMenu
 

Macros

#define MAX_VERB   260
 
#define DCM_FCIDM_SHVIEW_OFFSET   0x7000
 

Typedefs

typedef struct _DynamicShellEntry_ DynamicShellEntry
 
typedef struct _DynamicShellEntry_PDynamicShellEntry
 
typedef struct _StaticShellEntry_ StaticShellEntry
 
typedef struct _StaticShellEntry_PStaticShellEntry
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (dmenu)
 
static HRESULT SHELL_GetRegCLSID (HKEY hKey, LPCWSTR SubKey, LPCWSTR Value, CLSID &clsid)
 
static BOOL InsertMenuItemAt (HMENU hMenu, UINT Pos, UINT Flags)
 
UINT MapVerbToDfmCmd (_In_ LPCSTR verba)
 
static HRESULT MapVerbToCmdId (PVOID Verb, BOOL IsUnicode, IContextMenu *pCM, UINT idFirst, UINT idLast)
 
static bool IsVerbListSeparator (WCHAR Ch)
 
static int FindVerbInDefaultVerbList (LPCWSTR List, LPCWSTR Verb)
 
EXTERN_C HRESULT SHELL32_EnumDefaultVerbList (LPCWSTR List, UINT Index, LPWSTR Verb, SIZE_T cchMax)
 
static BOOL HasClipboardData ()
 
BOOL WINAPI _InsertMenuItemW (HMENU hMenu, UINT indexMenu, BOOL fByPosition, UINT wID, UINT fType, LPCWSTR dwTypeData, UINT fState)
 
HRESULT SHGetMenuIdFromMenuMsg (UINT uMsg, LPARAM lParam, UINT *CmdId)
 
HRESULT SHSetMenuIdInMenuMsg (UINT uMsg, LPARAM lParam, UINT CmdId)
 
static HRESULT CDefaultContextMenu_CreateInstance (const DEFCONTEXTMENU *pdcm, LPFNDFMCALLBACK lpfn, REFIID riid, void **ppv)
 
HRESULT WINAPI SHCreateDefaultContextMenu (const DEFCONTEXTMENU *pdcm, REFIID riid, void **ppv)
 
HRESULT WINAPI CDefFolderMenu_Create2 (PCIDLIST_ABSOLUTE pidlFolder, HWND hwnd, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, IShellFolder *psf, LPFNDFMCALLBACK lpfn, UINT nKeys, const HKEY *ahkeyClsKeys, IContextMenu **ppcm)
 

Variables

static const struct _StaticInvokeCommandMap_ g_StaticInvokeCmdMap []
 

Macro Definition Documentation

◆ DCM_FCIDM_SHVIEW_OFFSET

#define DCM_FCIDM_SHVIEW_OFFSET   0x7000

Definition at line 49 of file CDefaultContextMenu.cpp.

◆ MAX_VERB

#define MAX_VERB   260

Definition at line 15 of file CDefaultContextMenu.cpp.

Typedef Documentation

◆ DynamicShellEntry

◆ PDynamicShellEntry

◆ PStaticShellEntry

◆ StaticShellEntry

Function Documentation

◆ _InsertMenuItemW()

BOOL WINAPI _InsertMenuItemW ( HMENU  hMenu,
UINT  indexMenu,
BOOL  fByPosition,
UINT  wID,
UINT  fType,
LPCWSTR  dwTypeData,
UINT  fState 
)

Definition at line 760 of file CDefaultContextMenu.cpp.

768{
769 MENUITEMINFOW mii;
770 WCHAR wszText[100];
771
772 ZeroMemory(&mii, sizeof(mii));
773 mii.cbSize = sizeof(mii);
774 if (fType == MFT_SEPARATOR)
775 mii.fMask = MIIM_ID | MIIM_TYPE;
776 else if (fType == MFT_STRING)
777 {
779 if (IS_INTRESOURCE(dwTypeData))
780 {
781 if (LoadStringW(shell32_hInstance, LOWORD((ULONG_PTR)dwTypeData), wszText, _countof(wszText)))
782 mii.dwTypeData = wszText;
783 else
784 {
785 ERR("failed to load string %p\n", dwTypeData);
786 return FALSE;
787 }
788 }
789 else
790 mii.dwTypeData = (LPWSTR)dwTypeData;
791 mii.fState = fState;
792 }
793
794 mii.wID = wID;
795 mii.fType = fType;
796 return InsertMenuItemW(hMenu, indexMenu, fByPosition, &mii);
797}
#define shell32_hInstance
#define ERR(fmt,...)
Definition: precomp.h:57
#define FALSE
Definition: types.h:117
#define LOWORD(l)
Definition: pedump.c:82
#define _countof(array)
Definition: sndvol32.h:70
LPWSTR dwTypeData
Definition: winuser.h:3272
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define ZeroMemory
Definition: winbase.h:1737
#define MIIM_ID
Definition: winuser.h:725
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define IS_INTRESOURCE(i)
Definition: winuser.h:580
#define MFT_SEPARATOR
Definition: winuser.h:747
#define MIIM_STATE
Definition: winuser.h:724
#define MFT_STRING
Definition: winuser.h:749
#define MIIM_TYPE
Definition: winuser.h:728
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184

◆ CDefaultContextMenu_CreateInstance()

static HRESULT CDefaultContextMenu_CreateInstance ( const DEFCONTEXTMENU pdcm,
LPFNDFMCALLBACK  lpfn,
REFIID  riid,
void **  ppv 
)
static

Definition at line 1821 of file CDefaultContextMenu.cpp.

1822{
1823 return ShellObjectCreatorInit<CDefaultContextMenu>(pdcm, lpfn, riid, ppv);
1824}
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39

Referenced by CDefFolderMenu_Create2(), and SHCreateDefaultContextMenu().

◆ CDefFolderMenu_Create2()

HRESULT WINAPI CDefFolderMenu_Create2 ( PCIDLIST_ABSOLUTE  pidlFolder,
HWND  hwnd,
UINT  cidl,
PCUITEMID_CHILD_ARRAY  apidl,
IShellFolder psf,
LPFNDFMCALLBACK  lpfn,
UINT  nKeys,
const HKEY ahkeyClsKeys,
IContextMenu **  ppcm 
)

Definition at line 1854 of file CDefaultContextMenu.cpp.

1864{
1865 DEFCONTEXTMENU dcm;
1866 dcm.hwnd = hwnd;
1867 dcm.pcmcb = NULL;
1868 dcm.pidlFolder = pidlFolder;
1869 dcm.psf = psf;
1870 dcm.cidl = cidl;
1871 dcm.apidl = apidl;
1873 dcm.cKeys = nKeys;
1874 dcm.aKeys = ahkeyClsKeys;
1875
1878 return hr;
1879
1880 return S_OK;
1881}
static HRESULT CDefaultContextMenu_CreateInstance(const DEFCONTEXTMENU *pdcm, LPFNDFMCALLBACK lpfn, REFIID riid, void **ppv)
#define NULL
Definition: types.h:112
#define FAILED_UNEXPECTEDLY(hr)
Definition: precomp.h:121
#define S_OK
Definition: intsafe.h:52
HRESULT hr
Definition: shlfolder.c:183
IContextMenuCB * pcmcb
Definition: shlobj.h:2550
IShellFolder * psf
Definition: shlobj.h:2552
IUnknown * punkAssociationInfo
Definition: shlobj.h:2555
PCUITEMID_CHILD_ARRAY apidl
Definition: shlobj.h:2554
const HKEY * aKeys
Definition: shlobj.h:2557
PCIDLIST_ABSOLUTE pidlFolder
Definition: shlobj.h:2551
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
#define IID_PPV_ARG(Itype, ppType)

Referenced by _CFontMenu_CreateInstance(), CDrivesContextMenu_CreateInstance(), CCabFolder::CreateViewObject(), CNetFolder::CreateViewObject(), CRegItemContextMenu_CreateInstance(), CZipFolder::GetUIObjectOf(), CCabFolder::GetUIObjectOf(), CNetFolder::GetUIObjectOf(), and CCommonFolder< TSelf, TItemId, TExtractIcon >::GetUIObjectOf().

◆ FindVerbInDefaultVerbList()

static int FindVerbInDefaultVerbList ( LPCWSTR  List,
LPCWSTR  Verb 
)
static

Definition at line 111 of file CDefaultContextMenu.cpp.

112{
113 for (UINT index = 0; *List; ++index)
114 {
115 while (IsVerbListSeparator(*List))
116 List++;
118 while (*List && !IsVerbListSeparator(*List))
119 List++;
120 // "List > Start" to verify that the list item is non-empty to avoid the edge case where Verb is "" and the list contains ",,"
121 if (!_wcsnicmp(Verb, Start, List - Start) && List > Start)
122 return index;
123 }
124 return -1;
125}
static bool IsVerbListSeparator(WCHAR Ch)
#define index(s, c)
Definition: various.h:29
return pTarget Start()
GLuint index
Definition: glext.h:6031
unsigned int UINT
Definition: ndis.h:50
_Check_return_ _CRTIMP int __cdecl _wcsnicmp(_In_reads_or_z_(_MaxCount) const wchar_t *_Str1, _In_reads_or_z_(_MaxCount) const wchar_t *_Str2, _In_ size_t _MaxCount)
_Must_inspect_result_ _In_ WDFCMRESLIST List
Definition: wdfresource.h:550
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by CDefaultContextMenu::AddStaticContextMenusToMenu().

◆ HasClipboardData()

static BOOL HasClipboardData ( )
static

Definition at line 397 of file CDefaultContextMenu.cpp.

398{
399 BOOL bRet = FALSE;
400 CComPtr<IDataObject> pDataObj;
401
402 if (SUCCEEDED(OleGetClipboard(&pDataObj)))
403 {
404 FORMATETC formatetc;
405
406 TRACE("pDataObj=%p\n", pDataObj.p);
407
408 /* Set the FORMATETC structure*/
409 InitFormatEtc(formatetc, RegisterClipboardFormatW(CFSTR_SHELLIDLIST), TYMED_HGLOBAL);
410 bRet = SUCCEEDED(pDataObj->QueryGetData(&formatetc));
411 }
412
413 return bRet;
414}
HRESULT WINAPI OleGetClipboard(IDataObject **obj)
Definition: clipboard.c:2249
#define InitFormatEtc(fe, cf, med)
Definition: editor.h:32
unsigned int BOOL
Definition: ntddk_ex.h:94
#define SUCCEEDED(hr)
Definition: intsafe.h:50
#define CFSTR_SHELLIDLIST
Definition: shlobj.h:550
#define TRACE(s)
Definition: solgame.cpp:4
UINT WINAPI RegisterClipboardFormatW(_In_ LPCWSTR)

Referenced by CDefaultContextMenu::QueryContextMenu().

◆ InsertMenuItemAt()

static BOOL InsertMenuItemAt ( HMENU  hMenu,
UINT  Pos,
UINT  Flags 
)
static

Definition at line 26 of file CDefaultContextMenu.cpp.

27{
28 MENUITEMINFOW mii;
29 mii.cbSize = FIELD_OFFSET(MENUITEMINFOW, hbmpItem); // USER32 version agnostic
30 mii.fMask = MIIM_TYPE;
31 mii.fType = Flags;
32 return InsertMenuItemW(hMenu, Pos, TRUE, &mii);
33}
ush Pos
Definition: deflate.h:92
#define TRUE
Definition: types.h:120
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170

Referenced by CDefaultContextMenu::AddStaticContextMenusToMenu().

◆ IsVerbListSeparator()

static bool IsVerbListSeparator ( WCHAR  Ch)
inlinestatic

Definition at line 106 of file CDefaultContextMenu.cpp.

107{
108 return Ch == L' ' || Ch == L','; // learn.microsoft.com/en-us/windows/win32/shell/context-menu-handlers
109}
#define L(x)
Definition: ntvdm.h:50
#define Ch(x, y, z)
Definition: sha2.c:141

Referenced by FindVerbInDefaultVerbList(), and SHELL32_EnumDefaultVerbList().

◆ MapVerbToCmdId()

static HRESULT MapVerbToCmdId ( PVOID  Verb,
BOOL  IsUnicode,
IContextMenu pCM,
UINT  idFirst,
UINT  idLast 
)
static

Definition at line 88 of file CDefaultContextMenu.cpp.

89{
90 const UINT gcs = IsUnicode ? GCS_VERBW : GCS_VERBA;
91 for (UINT id = idFirst; id <= idLast; ++id)
92 {
95 HRESULT hr = pCM->GetCommandString(id, gcs, NULL, (LPSTR)buf, _countof(buf));
96 if (FAILED(hr) || !*buf)
97 continue;
98 else if (IsUnicode && !_wcsicmp((LPWSTR)Verb, buf))
99 return id;
100 else if (!IsUnicode && !lstrcmpiA((LPSTR)Verb, (LPSTR)buf))
101 return id;
102 }
104}
#define MAX_PATH
Definition: compat.h:34
int WINAPI lstrcmpiA(LPCSTR str1, LPCSTR str2)
Definition: locale.c:4224
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLuint id
Definition: glext.h:5910
HRESULT GetCommandString([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax)
#define FAILED(hr)
Definition: intsafe.h:51
#define UNICODE_NULL
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define HRESULT_FROM_WIN32(x)
Definition: winerror.h:92
#define ERROR_NOT_FOUND
Definition: winerror.h:690
char * LPSTR
Definition: xmlstorage.h:182

◆ MapVerbToDfmCmd()

UINT MapVerbToDfmCmd ( _In_ LPCSTR  verba)

Definition at line 77 of file CDefaultContextMenu.cpp.

78{
79 for (UINT i = 0; i < _countof(g_StaticInvokeCmdMap); ++i)
80 {
81 if (!lstrcmpiA(g_StaticInvokeCmdMap[i].szStringVerb, verba))
82 return (int)g_StaticInvokeCmdMap[i].DfmCmd;
83 }
84 return 0;
85}
static const struct _StaticInvokeCommandMap_ g_StaticInvokeCmdMap[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

Referenced by GetDfmCmd().

◆ SHCreateDefaultContextMenu()

HRESULT WINAPI SHCreateDefaultContextMenu ( const DEFCONTEXTMENU pdcm,
REFIID  riid,
void **  ppv 
)

Definition at line 1833 of file CDefaultContextMenu.cpp.

1834{
1835 HRESULT hr;
1836
1837 if (!ppv)
1838 return E_INVALIDARG;
1839
1842 return hr;
1843
1844 return S_OK;
1845}
#define E_INVALIDARG
Definition: ddrawi.h:101

Referenced by CDesktopFolder::CreateViewObject(), CDrivesFolder::CreateViewObject(), CFSFolder::CreateViewObject(), CDesktopFolder::GetUIObjectOf(), CFSFolder::GetUIObjectOf(), and init_function_pointers().

◆ SHELL32_EnumDefaultVerbList()

EXTERN_C HRESULT SHELL32_EnumDefaultVerbList ( LPCWSTR  List,
UINT  Index,
LPWSTR  Verb,
SIZE_T  cchMax 
)

Definition at line 127 of file CDefaultContextMenu.cpp.

128{
129 for (UINT i = 0; *List; ++i)
130 {
131 while (IsVerbListSeparator(*List))
132 List++;
134 while (*List && !IsVerbListSeparator(*List))
135 List++;
136 if (List > Start && i == Index)
137 return StringCchCopyNW(Verb, cchMax, Start, List - Start);
138 }
140}
UINT cchMax
#define ERROR_NO_MORE_ITEMS
Definition: compat.h:105
STRSAFEAPI StringCchCopyNW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc, size_t cchToCopy)
Definition: strsafe.h:236
_In_ WDFCOLLECTION _In_ ULONG Index

Referenced by HCR_GetDefaultVerbW().

◆ SHELL_GetRegCLSID()

static HRESULT SHELL_GetRegCLSID ( HKEY  hKey,
LPCWSTR  SubKey,
LPCWSTR  Value,
CLSID clsid 
)
static

Definition at line 18 of file CDefaultContextMenu.cpp.

19{
20 WCHAR buf[42];
21 DWORD cb = sizeof(buf);
24}
LSTATUS WINAPI RegGetValueW(HKEY hKey, LPCWSTR pszSubKey, LPCWSTR pszValue, DWORD dwFlags, LPDWORD pdwType, PVOID pvData, LPDWORD pcbData)
Definition: reg.c:1931
HRESULT WINAPI CLSIDFromString(LPCOLESTR idstr, LPCLSID id)
Definition: compobj.c:2338
#define RRF_RT_REG_SZ
Definition: driver.c:575
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
static HMODULE MODULEINFO DWORD cb
Definition: module.c:33
REFCLSID clsid
Definition: msctf.c:82
#define err(...)
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
Definition: wdfregistry.h:413

Referenced by CDefaultContextMenu::InvokeRegVerb().

◆ SHGetMenuIdFromMenuMsg()

HRESULT SHGetMenuIdFromMenuMsg ( UINT  uMsg,
LPARAM  lParam,
UINT CmdId 
)

Definition at line 1727 of file CDefaultContextMenu.cpp.

1728{
1729 if (uMsg == WM_DRAWITEM)
1730 {
1731 DRAWITEMSTRUCT* pDrawStruct = reinterpret_cast<DRAWITEMSTRUCT*>(lParam);
1732 *CmdId = pDrawStruct->itemID;
1733 return S_OK;
1734 }
1735 else if (uMsg == WM_MEASUREITEM)
1736 {
1737 MEASUREITEMSTRUCT* pMeasureStruct = reinterpret_cast<MEASUREITEMSTRUCT*>(lParam);
1738 *CmdId = pMeasureStruct->itemID;
1739 return S_OK;
1740 }
1741
1742 return E_FAIL;
1743}
LPARAM lParam
Definition: combotst.c:139
#define E_FAIL
Definition: ddrawi.h:102
#define WM_DRAWITEM
Definition: winuser.h:1648
#define WM_MEASUREITEM
Definition: winuser.h:1649

Referenced by CDefaultContextMenu::HandleMenuMsg2(), and CDefView::OnCustomItem().

◆ SHSetMenuIdInMenuMsg()

HRESULT SHSetMenuIdInMenuMsg ( UINT  uMsg,
LPARAM  lParam,
UINT  CmdId 
)

Definition at line 1745 of file CDefaultContextMenu.cpp.

1746{
1747 if (uMsg == WM_DRAWITEM)
1748 {
1749 DRAWITEMSTRUCT* pDrawStruct = reinterpret_cast<DRAWITEMSTRUCT*>(lParam);
1750 pDrawStruct->itemID = CmdId;
1751 return S_OK;
1752 }
1753 else if (uMsg == WM_MEASUREITEM)
1754 {
1755 MEASUREITEMSTRUCT* pMeasureStruct = reinterpret_cast<MEASUREITEMSTRUCT*>(lParam);
1756 pMeasureStruct->itemID = CmdId;
1757 return S_OK;
1758 }
1759
1760 return E_FAIL;
1761}

Referenced by CDefaultContextMenu::HandleMenuMsg2(), and CDefView::OnCustomItem().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( dmenu  )

Variable Documentation

◆ g_StaticInvokeCmdMap

const struct _StaticInvokeCommandMap_ g_StaticInvokeCmdMap[]
static
Initial value:
=
{
{ "RunAs", 0 },
{ "Print", 0 },
{ "Preview", 0 },
{ "Open", FCIDM_SHVIEW_OPEN },
{ "cut", FCIDM_SHVIEW_CUT, },
{ "copyto", FCIDM_SHVIEW_COPYTO },
{ "moveto", FCIDM_SHVIEW_MOVETO },
}
short SHORT
Definition: pedump.c:59
#define DFM_CMD_DELETE
Definition: shlobj.h:2608
#define DFM_CMD_NEWFOLDER
Definition: shlobj.h:2613
#define DFM_CMD_COPY
Definition: shlobj.h:2610
#define DFM_CMD_PASTE
Definition: shlobj.h:2614
#define DFM_CMD_PROPERTIES
Definition: shlobj.h:2612
#define DFM_CMD_RENAME
Definition: shlobj.h:2620
#define DFM_CMD_LINK
Definition: shlobj.h:2611
#define FCIDM_SHVIEW_CUT
Definition: shresdef.h:828
#define FCIDM_SHVIEW_OPEN
Definition: shresdef.h:855
#define FCIDM_SHVIEW_COPY
Definition: shresdef.h:829
#define FCIDM_SHVIEW_NEWFOLDER
Definition: shresdef.h:851
#define FCIDM_SHVIEW_PROPERTIES
Definition: shresdef.h:827
#define FCIDM_SHVIEW_COPYTO
Definition: shresdef.h:833
#define FCIDM_SHVIEW_MOVETO
Definition: shresdef.h:834
#define FCIDM_SHVIEW_DELETE
Definition: shresdef.h:826
#define FCIDM_SHVIEW_RENAME
Definition: shresdef.h:848
#define FCIDM_SHVIEW_CREATELINK
Definition: shresdef.h:849
#define FCIDM_SHVIEW_INSERT
Definition: shresdef.h:830

Referenced by CDefaultContextMenu::GetCommandString(), CDefaultContextMenu::MapVerbToCmdId(), MapVerbToDfmCmd(), and CDefaultContextMenu::TryPickDefault().