Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

IContextMenu interface

Exposes methods that either create or merge a shortcut menu associated with a Shell object.

Members

The IContextMenu interface inherits from the IUnknown interface. IContextMenu also has these types of members:

Methods

The IContextMenu interface has these methods.

MethodDescription
GetCommandString

Gets information about a shortcut menu command, including the help string and the language-independent, or canonical, name for the command.

InvokeCommand

Carries out the command associated with a shortcut menu item.

QueryContextMenu

Adds commands to a shortcut menu.

 

Remarks

When to Implement

Implement IContextMenu in the following situations.

For a detailed discussion of how to implement IContextMenu, see Creating Context Menu Handlers.

When to Use

Applications use IContextMenu to retrieve information about the items in an object's shortcut menu and to invoke the associated commands. To retrieve an object's IContextMenu interface, an application must call the object's IShellFolder::GetUIObjectOf method.

Shell extension handlers that export this interface must also export IShellExtInit. For details, see Creating Shell Extension Handlers.

Note  Windows Vista and later: Prior to Windows Vista this interface was declared in Shlobj.h.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 4.0 or later)

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.