IDirectManipulationContent::SetContentSize method

[This documentation is preliminary and is subject to change.]

Applies to: desktop apps only

Sets the current viewport content size.

Syntax

HRESULT SetContentSize(
  [in]  const RECT *contentSize
);

Parameters

  • contentSize [in]
    The rectangle representing the content size relative to the viewport.

Return value

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

Examples

The following example shows how to set the content size.

RECT rcContent;
rcContent.left = 100;
rcContent.top = 50;
rcContent.right = 500;
rcContent.bottom = 150;

HRESULT hr = pContent->SetContentSize(&rcContent);

Requirements

Minimum supported client

Windows Developer Preview

Minimum supported server

Windows Server Developer Preview

IDL

DirectManipulation.idl

See also

IDirectManipulationContent

 

 

Build date: 12/12/2011