This sample shows how to use the Multimedia control to play an AVI file in a control that has an hWnd property.
The control with the hWnd is a custom ActiveX Control called hWin, created with the OLE Control Wizard in Microsoft Visual C++ 4.0. In creating the hWin .ocx, all the default options in the OLE Control wizard were chosen, all the default properties were added to the control, and the code was compiled.
In the Init of the form, the following line of code directs the Multimedia control to play the AVI in the form:
ThisForm.VCR.hWndDisplay = ThisForm.Test.hWnd