Beispiel #1
0
 //移动窗体位置时,视频随之移动
 private void frmMain_Move(object sender, EventArgs e)
 {
     for (int i = 0; i < m_dwDevNum; i++)
     {
         plVideo1.Invalidate();
         VideoOperate.VCAUpdateOverlayWnd(this.Handle);
         VideoOperate.VCAUpdateVideoPreview(i, plVideo1.Handle);
     }
 }
Beispiel #2
0
 /// <summary>
 /// 移动窗体位置时,视频随之移动
 /// </summary>
 private void MoveVideo()
 {
     for (int i = 0; i < m_dwDevNum; i++)
     {
         foreach (Control ctl in this.Controls)
         {
             if ((ctl is Panel) && (ctl.Name == "plVideo" + (i + 1)))
             {
                 ctl.Invalidate();
                 VideoOperate.VCAUpdateOverlayWnd(this.Handle);
                 VideoOperate.VCAUpdateVideoPreview(i, ctl.Handle);
             }
         }
     }
 }