IAxWinAmbientDispatch::get_AllowContextMenu

The AllowContextMenu property specifies whether the hosted control is allowed to display its own context menu.

STDMETHOD( get_AllowContextMenu )(
   VARIANT_BOOL* pbAllowContextMenu 
);

Parameters

  • pbAllowContextMenu
    [out] The address of a variable to receive the current value of this property.

Return Value

A standard HRESULT value.

Remarks

The ATL host object implementation uses VARIANT_TRUE as the default value of this property.

Requirements

Header: atliface.h

See Also

Concepts

IAxWinAmbientDispatch Interface

IAxWinAmbientDispatch Members

IDocHostUIHandler::ShowContextMenu