Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IRawElementProviderSimple2::ShowContextMenu method

Programmatically invokes a context menu on the target element.

Syntax


HRESULT ShowContextMenu();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method returns an error code if the context menu could not be invoked.

If no context menu is available directly on the element on which ShowContextMenu was invoked, the provider should attempt to invoke a context menu on the UI Automation parent of the current item.

Requirements

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

IRawElementProviderSimple2

 

 

Community Additions

Show:
© 2014 Microsoft