Skip to main content
IDirectManipulationViewport::GetViewportRect method

Retrieves the rectangle for the viewport relative to the origin of the viewport coordinate system specified by SetViewportRect.

Syntax


HRESULT GetViewportRect(
  [out, retval]  RECT *viewport
);

Parameters

viewport [out, retval]

The bounding rectangle relative to the viewport coordinate system.

Return value

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

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

DirectManipulation.h

IDL

DirectManipulation.idl

IID

IID_IDirectManipulationViewport is defined as 28b85a3d-60a0-48bd-9ba1-5ce8d9ea3a6d

See also

IDirectManipulationViewport