IAxWinAmbientDispatch::put_AllowContextMenu

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

STDMETHOD( put_AllowContextMenu )( 
   VARIANT_BOOL bAllowContextMenu  
);

Parameters

  • bAllowContextMenu
    [in] The new 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

Reference

IAxWinAmbientDispatch Interface

IDocHostUIHandler::ShowContextMenu