v2.37
 
IContextMenu Interface Reference

This interface represents a context menu in Renga. More...

Inheritance diagram for IContextMenu:

Public Member Functions

HRESULT AddActionItem ([in] IAction *pAction, [out, retval] IContextMenuItem **ppItem)
 Creates an action item and adds it to the context menu.
 
HRESULT AddNodeItem ([out, retval] IContextMenuNodeItem **ppItem)
 Creates a node item and adds it to the context menu.
 
HRESULT AddSeparator ()
 Adds a separaror to the context menu.
 

Detailed Description

This interface represents a context menu in Renga.

A context menu may consist of action items, separators and submenu nodes.
Context menu objects exists in Renga until the application is closed. The same context menu can be added to different views.

See also
IUI::CreateContextMenu(), IUI::AddContextMenu()

Member Function Documentation

◆ AddActionItem()

HRESULT AddActionItem ( [in] IAction * pAction,
[out, retval] IContextMenuItem ** ppItem )

Creates an action item and adds it to the context menu.

Parameters
[in]pActionThe action for the created item.
[out]ppItemThe context menu item inteface which references the new menu item.

◆ AddNodeItem()

HRESULT AddNodeItem ( [out, retval] IContextMenuNodeItem ** ppItem)

Creates a node item and adds it to the context menu.

Parameters
[out]ppItemThe context menu node item inteface which references the new menu item.