ExpressionEdit.CreateContextMenu

Syntax

ControlName_CreateContextMenu( menuHandle, x, y)

Applies To

ExpressionEdit

Purpose

Occurs just before the ExpressionEdit control displays its context menu. Use this event to add or remove items from the context menu of the ExpressionEdit control.

Remarks

The ExpressionEdit control creates a new context menu every time it displays its context menu to the user.

Parameters

menuHandle As Long

[In] Specifies the Microsoft Windows menu handle (HMENU) of the context menu. Use menu functions in the Windows Software Development Kit to modify this menu. Use the ExpressionEdit.ContextMenuItemClick event to respond to the user clicking menu items you add.

When the context menu closes, the control disposes of the menu items. Thus, you do not need to dispose of menu items you insert.

x As long

[In] Specifies where the left edge of the context menu is visible, relative to the control.

y As long

[In] Specifies where the top edge of the context menu is visible, relative to the control.

See Also

ExpressionEdit.ContextMenuItemClick