IUIContextualUI::ShowAtLocation method (uiribbon.h)

Displays a ContextPopup.

Syntax

HRESULT ShowAtLocation(
  INT32 x,
  INT32 y
);

Parameters

x

Type: INT32

The absolute x-coordinate, in screen coordinates, for the upper-left corner of the ContextPopup.

y

Type: INT32

The absolute y-coordinate, in screen coordinates, for the upper-left corner of the ContextPopup.

Return value

Type: HRESULT

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

Remarks

The location of the ContextPopup is not based on the screen coordinates of the application window or the mouse pointer.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header uiribbon.h
DLL Mshtml.dll

See also

Context Popup

ContextPopup Sample

IUIContextualUI