ViewDoContextMenuPopup Method |
Creates and displays a shortcut menu, tracks the selection of items on that menu, and invokes a chosen command.
Namespace:
ShellBoost.Core.WindowsShell
Assembly:
ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax public int DoContextMenuPopup(
Object contextMenu,
CMF flags = CMF.CMF_NORMAL,
POINT? position = null,
bool throwOnError = true
)
Parameters
- contextMenu
- Type: SystemObject
A pointer to the IContextMenu implementation. - flags (Optional)
- Type: ShellBoost.Core.WindowsShellCMF
Optional flags specifying how the shortcut menu can be changed. - position (Optional)
- Type: SystemNullablePOINT
Location where you want the shortcut menu to appear. This point specifies the location of the menu's upper left corner in screen coordinates. - throwOnError (Optional)
- Type: SystemBoolean
true to throw error; otherwise false.
Return Value
Type:
Int32
An error number or 0.
Exceptions See Also