15,979
社区成员
发帖
与我相关
我的任务
分享
HRESULT hr;
hr = m_pGB->QueryInterface(IID_IVideoWindow, (LPVOID *) &m_pVW);
hr = m_pVW->put_Visible(OAFALSE); //视频窗口不可见
hr = m_pVW->put_Owner((OAHWND)m_hWnd); //窗口所有者:传入的窗口句柄
hr = m_pVW->put_WindowStyle(WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS);//设置窗口类型
//The put_MessageDrain method specifies a window to receive mouse and keyboard messages from the video window.
m_pVW->put_MessageDrain((OAHWND)m_hWnd);
//The put_AutoShow method specifies whether the video renderer automatically shows the video window when it receives video data.
m_pVW->put_AutoShow(OATRUE);