INFO: MayChangeDefault Key Needed for IContextMenu to Be Called in Response to a Double-Click (216546)



The information in this article applies to:

  • Microsoft Platform Software Development Kit (SDK) 1.0

This article was previously published under Q216546

SUMMARY

For a context menu's QueryContextMenu function to be called in response to a double-click on a file object already associated with the context menu, the MayChangeDefaultMenu key must be added to the registry as follows:
HKEY_CLASSES_ROOT\CLSID\{CLSID}\ShellEx\MayChangeDefaultMenu
				
where {CLSID} is the CLSID for the context menu extension.

MORE INFORMATION

In IContextMenu::QueryContextMenu(), the CMF_DEFAULTONLY flag is set when the user is activating the default action, typically by double-clicking. This flag provides a hint for the context menu extension to add nothing if it does not modify the default item in the menu. A context menu extension or drag-and-drop handler should not add any menu items if this value is specified. A namespace extension should add only the default item (if any).

Modification Type:MinorLast Reviewed:7/11/2005
Keywords:kbContMenu kbExtension kbinfo KB216546