GetRenderRect

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:

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.