OLEMENU Enum

Definition

Specifies the way the menu belonging to the UI active object is to be used with a component's container menu.

public enum class OLEMENU
public enum class OLEMENU
enum OLEMENU
public enum OLEMENU
type OLEMENU = 
Public Enum OLEMENU
Inheritance
OLEMENU

Fields

OLEMENU_CNTRMENUONLY 2

Indicates that all menu commands should be routed to the component. Only the menu of the container should be displayed.

OLEMENU_MENUMERGE 1

Indicates that the UI active object's menu should merge with the component's container menu.

OLEMENU_OBJECTMENUONLY 4

Indicates that only the menu of the active object should be displayed.

OLEMENU_ROUTEACTIVEASCNTRCMD 8

Indicates that commands from the active object menu are routed first to the main component (OLEROLE_MAINCOMPONENT). If the main component does not handle a command, it is then routed to the component that is UI active (visible with focus). OLEMENU_ROUTEACTIVEASCNTRCMD may only be used by a main component that wants to ensure that it is in control of commands that are dispatched to its nested components. It is analogous to OLECOMPFLAG_ROUTEACTIVEASCNTRCMD.

Remarks

The OLEMENU_MENUMERGE, OLEMENU_CNTRMENUONLY, and OLEMENU_OBJECTMENUONLY flags are mutually exclusive.

The hardwired in-place component returns these flags from GetCntrContextMenu to control how the component control's context menu is merged into the container's menu.

COM Signature

From oleipc.idl.

[C++]

Applies to