IDirectManipulationContent::GetContentRect 方法 (directmanipulation.h)

检索内容的边界矩形,相对于视区 (的边框(如果定义) )。

语法

HRESULT GetContentRect(
  [out] RECT *contentSize
);

参数

[out] contentSize

内容的边框。

返回值

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

备注

如果尚未使用 SetContentRect 设置边界矩形,则返回 UI_E_VALUE_NOT_SET 。 但是,实际内容矩形是 ( FLT_MAX、-FLT_MAXFLT_MAXFLT_MAX) 。

要求

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

请参阅

IDirectManipulationContent