Click or drag to resize

View.DoContextMenuPopup Method

Creates and displays a shortcut menu, tracks the selection of items on that menu, and invokes a chosen command.

Namespace:  callback.ShellBoost.Core.WindowsShell
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public int DoContextMenuPopup(
	Object contextMenu,
	CMF flags = CMF.CMF_NORMAL,
	POINT? position = null,
	bool throwOnError = true
)

Parameters

contextMenu
Type: System.Object
A pointer to the IContextMenu implementation.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShell.CMF
Optional flags specifying how the shortcut menu can be changed.
position (Optional)
Type: System.Nullable<POINT>
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: System.Boolean
true to throw error; otherwise false.

Return Value

Type: Int32
An error number or 0.
Exceptions
ExceptionCondition
ArgumentNullExceptionsite is null.
See Also