INFO: MayChangeDefault Key Needed for IContextMenu to Be Called in Response to a Double-ClickID: Q216546
|
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_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{CLSID}\ShellExt\MayChangeDefaultMenu
where {CLSID} is the CLSID for the context menu extension.
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).
Additional query words: doubleclick
Keywords : kbContMenu kbExtension kbSDKPlatform kbGrpShell
Version : WINDOWS:95,98
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: February 27, 1999