Click or drag to resize

ViewDoContextMenuPopup 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: SystemObject
A pointer to the IContextMenu implementation.
flags (Optional)
Type: callback.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
ExceptionCondition
ArgumentNullExceptionsite is null.
See Also