资源说明:MFC WebCam PreView
hWndC = capCreateCaptureWindow (
"Capture Window", // 設定Capture Windows Name
WS_CHILD|WS_DLGFRAME, // Window styles used for the capture window
m_rectFrame.TopLeft().x, // The x coordinates of the upper left corner of the capture window
m_rectFrame.TopLeft().y, // The y coordinates of the upper left corner of the capture window
240, // Width of the capture window
160, // Height of the capture window
GetSafeHwnd(), // Handle of the parent window
11011); // Window identifier
if(hWndC){
capDriverConnect (hWndC, 0); // 0 ->means default driver. //與驅動程式連結
}else{
AfxMessageBox("Error Cammera is not connected!");//error message box.
exit(1);
}
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。
English
