次の方法で共有


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