DFM_MAPCOMMANDNAME message

Sent by the default context menu implementation to assign a name to a menu command.

DFM_MAPCOMMANDNAME

    lParam = (LPARAM)(int*) defaultID;

    wparam = (WPARAM)(LPTSTR) pszCommandName;

            

Parameters

defaultID [in, out]

A pointer to the ID of the selected menu command.

pszCommandName [in]

A pointer to a Unicode string containing the name of the command.

Remarks

This message is sent to either the callback function or the callback object depending on how the default context menu object is implemented. There are two APIs for its implementation, CDefFolderMenu_Create2, SHCreateDefaultContextMenu.

DFM_INVOKECOMMANDEX is an extended version of this message and provides more information to the callback. Use DFM_INVOKECOMMANDEX if the additional information provided by that interface is needed in your implementation.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Shlobj.h