DFM_GETDEFSTATICID message
Sent by the default context menu implementation during creation, specifying the default menu command and allowing an alternate choice to be made. Used by LPFNDFMCALLBACK.
DFM_GETDEFSTATICID
lParam = (LPARAM)(int*) defaultID;
Parameters
-
defaultID [in, out]
-
A pointer to the ID of the selected menu command. The following flag is recognized.
-
DFM_CMD_PROPERTIES
-
Show the Properties UI for the item the menu was invoked on.
Remarks
To override the default command choice, your handler should, upon receipt of this message, set the value pointed to by defaultID to the ID of the replacement command and return S_OK. Return a failure code otherwise.
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
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|