Microsoft DirectX 8.1 (C++)

IMSVidCtl::get_BackColor

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The get_BackColor method retrieves the background color of the Video Control.

Syntax

HRESULT get_BackColor(
  OLE_COLOR*  pbackcolor
);

Parameters

  pbackcolor

[out]  Pointer to a variable that receives an OLE_COLOR value.

Return Values

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

Example Code

OLE_COLOR ocBack;
pVideoControl->get_BackColor(&ocBack);
COLORREF clrBack = TranslateColor(ocBack);

See Also