Microsoft DirectX 9.0 |
This topic applies to Windows XP only.
The BackColor property sets or retrieves the background color of the Video Control.
Syntax
objMSVidCtl.BackColor As OLE_COLOR
Parameters
This property takes no parameters.
Error Codes
If the property fails, an error is raised and Err.Number is set to a value other than zero.
Return Values
Returns an OLE_COLOR value.
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.
This property is read/write. In Visual Basic, you can set this property at design time using the Properties dialog.
Example Code
Const Orange = &H80FF&
VideoControl1.BackColor = Orange
See Also