|Microsoft DirectX 9.0|
The SetBorderColor method sets the border color to be used by the VMR.
HRESULT SetBorderColor( COLORREF Clr );
[in] Specifies the border color.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
|VFW_E_WRONG_STATE||The VMR is not in windowless mode.|
The border color is color used to fill any area of the destination rectangle that does not contain video. It is typically used in two instances: (1) when the video straddles two monitors and (2) when the VMR is trying to maintain the aspect ratio of the movie by letter boxing the video to fit within the specified destination rectangle. See the IVMRWindowlessControl::SetAspectRatioMode method.