IDirectManipulationContent::GetContentRect method (directmanipulation.h)

Retrieves the bounding rectangle of the content, relative to the bounding rectangle of the viewport (if defined).

Syntax

HRESULT GetContentRect(
  [out] RECT *contentSize
);

Parameters

[out] contentSize

The bounding rectangle of the content.

Return value

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

Remarks

If the bounding rectangle has not been set using SetContentRect, then UI_E_VALUE_NOT_SET is returned. However, the actual content rectangle is (-FLT_MAX, -FLT_MAX, FLT_MAX, FLT_MAX).

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header directmanipulation.h

See also

IDirectManipulationContent