IDirectManipulationPrimaryContent::GetCenterPoint 方法 (directmanipulation.h)

检索内容坐标中操作的中心点。 如果没有正在进行的操作,则检索视区的中心点。

语法

HRESULT GetCenterPoint(
  [out] float *centerX,
  [out] float *centerY
);

参数

[out] centerX

水平轴上的中心。

[out] centerY

垂直轴上的中心。

返回值

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

要求

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

请参阅

IDirectManipulationPrimaryContent