Expand Minimize

DFM_VALIDATECMD message

Sent to verify the existence of a menu command.


DFM_INVOKECOMMAND

    wParam = (WPARAM)(WPARAM) idCmd;			

    lParam = (LPARAM)(LPARAM) lParam = 0;

			

Parameters

idCmd
The menu command identifier offset.
lParam
Not used. Must be zero.

Return value

Returns S_OK if the command exists, or S_FALSE otherwise.

Remarks

This message is sent to either the callback function or the callback object depending on how the default context menu object is constructed. There are two APIs for its construction, 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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Shlobj.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft