实时图像的视频界面   看你能否找到这个的句柄了,然后丢入pannel的方法一样。

解决方案 »

  1.   

    我用句柄查看器找了下,貌似下面的这个对象(TLiveConversation):
    IntPtr subform = API.FindWindow("TLiveConversation", null);
     API.SetParent(ptrskypeWnd, this.panel1.Handle);
    API.ShowWindow(ptrskypeWnd, WindowsApi.API.SW_MAXIMIZE);
    但是无法抓取双方通话过程中的实时图像的视频界面显示在form窗体的Panel控件中,
    是不是句柄没有找正确,还是其它问题,请帮忙看看;
      

  2.   

    考虑 截图 然后弄个线程 循环刷新
            public Bitmap PrtWindow(IntPtr hWnd2)
            {
                IntPtr hWnd = hWnd2; //FindWindowByCaption(IntPtr.Zero,fromname);
                RECT rect = new RECT();
                IntPtr hscrdc = GetWindowDC(hWnd);
                
                GetWindowRect(hWnd,out rect);
                            IntPtr hbitmap = CreateCompatibleBitmap(hscrdc, rect.Right - rect.Left, rect.Bottom - rect.Top);            IntPtr hmemdc = CreateCompatibleDC(hscrdc);            SelectObject(hmemdc, hbitmap);           PrintWindow(hWnd, hmemdc, 0);            Bitmap bmp = Bitmap.FromHbitmap(hbitmap);            DeleteDC(hscrdc);            DeleteDC(hmemdc);            return bmp;
            }