This method returns the dimension of the render in pixels (given in screen coordinates) of the 3D Window.
HRESULT GetRenderRect(
[out] VARIANT* intScreenX,
[out] VARIANT* intScreenY,
[out] VARIANT* intWidth,
[out] VARIANT* intHeight)
Parameters:
intScreenX – The x-coordinate, in pixels (given in screen coordinates), of the top-left corner of the 3D Window.
intScreenY – The y-coordinate, in pixels (given in screen coordinates), of the top-left corner of the 3D Window.
intWidth – The width, in pixels, of the 3D Window.
intHeight – The height, in pixels, of the 3D Window.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |