IDirectManipulationContent::GetContentRect 方法 (directmanipulation.h)
如果定義) ,則擷取內容的周框,相對於檢視區的周框 (。
語法
HRESULT GetContentRect(
[out] RECT *contentSize
);
參數
[out] contentSize
內容的周框。
傳回值
如果方法成功,它會 傳回S_OK。 否則,它會傳回 HRESULT 錯誤碼。
備註
如果尚未使用 SetContentRect設定周框,則會傳回 UI_E_VALUE_NOT_SET 。 不過,實際的內容矩形 ( FLT_MAX、-FLT_MAX、 FLT_MAXFLT_MAX) 。
需求
最低支援的用戶端 | Windows 8 [僅限傳統型應用程式] |
最低支援的伺服器 | Windows Server 2012 [僅限傳統型應用程式] |
目標平台 | Windows |
標頭 | directmanipulation.h |