GefEventContext.ContextMenu (read-only property)

Gets the context menu object about to be displayed.
Syntax: Set GefContextMenu = object.ContextMenu
Description: This method is only valid for events of type gefEventPreContextMenu.

Example:

Sub GefEventContext_ContextMenuObject()
    
    Dim oCimEvntContxt As GefEventContext
    Dim oCimContextMenu As GefContextMenu
    Set oCimEvntContxt = CimGetEventContext
    Set oCimContextMenu = oCimEvntContxt.ContextMenu
    
End Sub