MFC+OpenCV获得动态创建窗口的句柄

//获得动态创建窗口的句柄

cvNamedWindow(“Mywindow”, 0);

HWND  hWnd = (HWND)cvGetWindowHandle(“Mywindow”);

//获得动态创建窗口父窗口的句柄

HWND hParent = ::GetParent(hWnd);

你可能感兴趣的:(mfc)