Platform SDK: Broadcast Architecture

Using the Video Control

The Microsoft® ActiveX® control for video (the Video control) is a dual-interface ActiveX control. This functionality means you can use the control from a variety of programming environments, such as World Wide Web pages, applications built in the Microsoft® Visual Basic® development system, Java applets and applications, and C++ applications.

For details on working with the Video control to display video streams, manage devices, and interact with the Video Access server, see:

For additional information on the tasks involved in using the Video control, see Displaying Video.

Note  If you are displaying the Video control in a window that does not have the WS_CLIPCHILDREN window style set, the video display may not refresh properly.

This functionality is of concern to developers programming in C++ using the Microsoft® Foundation Classes (MFC). By default, MFC windows do not set the WS_CLIPCHILDREN style. To cause the Video control to refresh properly in MFC-based applications, you can either override the MFC method CWnd::PreCreateWindow to set this style or paint the correct color key during the call to the MFC method CWnd::OnEraseBkgnd. The correct color key value can be obtained from the BPCVid.ColorKey property.