IViewObjectPresentFlipSite::GetBoundingRect method

Provides the size (in pixels) of the ActiveX control on the screen.

Syntax

HRESULT GetBoundingRect(
  [out] RECT pRect
);

Parameters

  • pRect [out]

Return value

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

Remarks

The size can then be passed to CreateSurfacePresenterFlip.

The value returned is only valid if called during NotifyRender.

This is the same information that GetMetrics returns, but in a more compact form (and without the X and Y scaling factors).

Requirements

Minimum supported client

Windows 10

Minimum supported server

Windows Server 2016

DLL

Mshtml.dll; Edgehtml.dll