IMSVidCtl::put_BackColor Method

This topic applies to Windows XP or later.
The put_BackColor method specifies the background color of the Video Control.

Syntax

HRESULT put_BackColor(
  [in]  OLE_COLOR backcolor
);

Parameters

  • backcolor [in]
    Specifies the background color as an OLE_COLOR value.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

The Video Control uses the background color when the filter graph is stopped or unbuilt. It also uses this color in letterbox mode to paint unused areas of the video rectangle. The background color is sometimes called the "border" color.

Examples

COLORREF orange = RGB(0xFF, 0x80, 0x00);
hr = pVideoControl->put_BackColor(static_cast<OLE_COLOR>(orange));

Requirements

Header Declared in Dshow.h.
DLL Requires Quartz.dll.

See Also

IMSVidCtl Interface
IMSVidCtl::get_BackColor
IVMRWindowlessControl::SetBorderColor

Send comments about this topic to Microsoft

Build date: 12/4/2008