摘要:
核心代码如下:HWND hVideoWnd = capCreateCaptureWindow(NULL,WS_POPUP,0,0,200,300,hWnd,0); //创建摄像头视频窗口if (capDriverConnect(hVideoWnd,0)) //连接驱动程序{ ::SetParent(hVideoWnd,hWnd); //设置父窗口 ::SetWindowLong(hVideoWnd,GWL_STYLE,WS_CHILD); ::SetWindowPos(hVideoWnd,NULL,10,10,300, 300, SWP_NOZORDER); ... 阅读全文