IDirectManipulationContent::SetContentRect 方法 (directmanipulation.h)

指定内容相对于其视区的边框。

语法

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

参数

[in] contentSize

内容的边框。

返回值

如果方法成功,则返回 S_OK。 否则,将返回 HRESULT 错误代码。

注解

默认边界矩形为 (-FLT_MAX、-FLT_MAXFLT_MAXFLT_MAX) 。

要求

要求
最低受支持的客户端 Windows 8 [仅限桌面应用]
最低受支持的服务器 Windows Server 2012 [仅限桌面应用]
目标平台 Windows
标头 directmanipulation.h

另请参阅

IDirectManipulationContent