IDirectManipulationViewport::SetViewportRect method (directmanipulation.h)
Sets the bounding rectangle for the viewport, relative to the origin of the viewport coordinate system.
Syntax
HRESULT SetViewportRect(
[in] const RECT *viewport
);
Parameters
[in] viewport
The bounding rectangle.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The viewport rectangle specifies the region of content that is visible to the user. In conjunction with the primary content rectangle, the viewport rectangle is used to determine chaining behaviors.
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 |