MFC和OpenCV结合

把cv显示框嵌入 pic控件

    cvNamedWindow("kalman");  
    HWND hWnd = (HWND) cvGetWindowHandle("kalman");
    HWND hParent = ::GetParent(hWnd);
    ::SetParent(hWnd, GetDlgItem(IDC_SHOWPIC)->m_hWnd);
    ::ShowWindow(hParent, SW_HIDE);


你可能感兴趣的:(MFC和OpenCV结合)