创建完这个窗口,怎样消灭这个窗口
HWND m_hCapture; m_hCapture=capCreateCaptureWindow("Cap",WS_EX_CONTROLPARENT|WS_CHILD|WS_VISIBLE,5,6,320,240,m_hWnd,0); //创建一个窗口
capDriverConnect (m_hCapture, 0);
//get params
capCaptureGetSetup(m_hCapture,&m_CaptureParms,sizeof (m_CaptureParms)) ;
//设置桢速
m_CaptureParms.dwRequestMicroSecPerFrame=4;
//有无时间限制
m_CaptureParms.fLimitEnabled = FALSE;
//是否捕捉音频
m_CaptureParms.fCaptureAudio = FALSE;
//MCI Device支持
m_CaptureParms.fMCIControl = FALSE;
//设置窗口,如果为false,捕捉画面在桌面上
m_CaptureParms.fYield = TRUE;
//停止捕捉键设置
m_CaptureParms.vKeyAbort = VK_ESCAPE;
m_CaptureParms.fAbortLeftMouse = FALSE;
m_CaptureParms.fAbortRightMouse = FALSE;
capCaptureSetSetup(m_hCapture,&m_CaptureParms,sizeof (m_CaptureParms));
//设置预览时的比例
capPreviewScale(m_hCapture, 1);
//设置预览时的帧频率
capPreviewRate(m_hCapture,66);
//是否支持比例变化
capPreviewScale(m_hCapture,TRUE);
//打开预览
capPreview(m_hCapture, 1);
创建完这个窗口,怎样消灭这个窗口。