PDA

View Full Version : How do I get rid of the Active Movie window?



Unregistered
January 19, 2004, 13:47:01
How do I get rid of the Active Movie window?

Stefan Geissler
January 21, 2004, 08:16:26
Hello,

There are two ways to get rid of the ActiveMovie Window:
Call startLive() with parameter “false”, then no live video is shown, or create a CStatic on your window and assign it's m_hWnd to the Grabber (call setHWND()). Then the live video is shown in the CStatic window on your application window.
To resize the live video to the size of your CStatic window, use following code:


m_cGrabber.setHWND( m_cVideoWindow.m_hWnd);
CRect rect;
m_cVideoWindow.GetClientRect(&rect);
m_cGrabber.setDefaultWindowPosition(false);
//Set the new window size
m_cGrabber.setWindowSize(rect.Width(), rect.Height());