Microsoft DirectX 8.1 (C++) |
The GetRelativePosition method retrieves the position of the stream in the display window.
Syntax
HRESULT GetRelativePosition(
DWORD *pdwLeft,
DWORD *pdwTop,
DWORD *pdwRight,
DWORD *pdwBottom
);
Parameters
pdwLeft
[out] Pointer to a value indicating the x-coordinate in the top-left corner of the display window.
pdwTop
[out] Pointer to a value indicating the y-coordinate in the top-left corner of the display window.
pdwRight
[out] Pointer to a value indicating the x-coordinate in the bottom-right corner of the display window.
pdwBottom
[out] Pointer to a value indicating the y-coordinate in the bottom-right corner of the display window.
Return Value
Returns an HRESULT value. Possible values include the following:
Value | Description |
E_INVALIDARG | Coordinates not in the {0, 0, 10,000, 10,000} range. |
S_OK | Success. |
Remarks
This method assumes window coordinates of {0, 0, 10,000, 10,000}. If the video stream is being rendered in the bottom right quarter of the display window, this method would return {5,000, 5,000, 10,000, 10,000}.
See Also