IContextMenu Interface Exposes methods that either create or merge a shortcut menu associated with a Shell object.
Add an item to Explorer Shell context menu easily – How to add them ? Add entries to Windows Explorer Shell context menu easily with Windows Explorer Shell Context Menu. This powerful .Net component for your own, custom items appending to Windows Explorer Shell context menu will add all your custom application entries to Explorer Shell context menu. This .Net component and Visual Basic .NET support include detailed C# / VB.NET samples, tutorials and support all you may need to add your entries to Explorer context menu : - Add all your items to Windows Explorer Shell context menu to be shown on any Windows computer (all operating systems are supported – Windows XP, Vista, Windows x64 , etc.)
- Add items to Windows Explorer Shell context menu to be shown in any way - with your custom caption and your custom icon, as separator or sub-menu
- Add your items to Windows Explorer Shell context menu to be shown for all files or shown only for files of particular type (for example, only for .PDF .TXT , .MP3,.WMA,.AAC , .AVI media files)
- Add items to Explorer Shell context menu, sub-menus, sub-menus of unlimited depth and add to Explorer context menu entries of all types
Windows Explorer Shell Context Menu - is a .Net framework component that support all you may need to add your program items to Windows Explorer Shell context menu - in a fast and easy way. Add your application entries to Explorer Shell context menu right now – add entries to context menu fast and exactly as you want :
IContextMenu Interface Description IContextMenu is an interoperation interface used in old Windows computers to add items to Explorer Shell context menu, because this method works only for Windows 95 / Windows 98 (not on XP, Vista, x64 - 64-bit Windows), to add items to Windows Explorer Shell context menu you should use, according to Microsoft guidelines, appropriate .Net component - Windows Explorer Shell Context Menu. This .Net component will add all your program items to Windows Explorer Shell context menus. IContextMenu Members
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.
* Shell extension handlers implement this interface to dynamically add items to a Shell object's shortcut menu. * Namespace extensions implement this interface to specify their object's shortcut menus.
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.
Interface Information
Minimum DLL Version shell32.dll version 4.0 or later Custom Implementation Yes Inherits from IUnknown Header and IDL files shobjidl.h, shobjidl.idl Minimum operating systems Windows NT 4.0, Windows 95 |