public void ChangeHandle(int iHandle, IntPtr Oldhandle, int iType) { m_iType = iType; this.m_iHandle = iHandle; this.m_pOldHandle = Oldhandle; VsClientAPI.VSSP_ClientSetPlayHwnd(m_iHandle, PanelFull.Handle); }
/// <summary> /// 双击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PanelFull_DoubleClick(object sender, EventArgs e) { if (m_iType != -1) { switch (m_iType) { case 1: //自己api VsClientAPI.VSSP_ClientSetPlayHwnd(m_iHandle, m_pOldHandle); this.Visible = false; break; case 2: //海康api StopPlayHik(); this.Visible = false; break; } } }
/// <summary> ///重新定位播放窗口 /// </summary> /// <param name="_lHandle">连接句柄</param> /// <param name="_Handle">显示窗口句柄</param> public void LocationHandle(int _lHandle, IntPtr _WndHandle, IntPtr _OldHandle) { m_iPlayHandle = _lHandle; this.m_pPlayWnd = _OldHandle; int ret = VsClientAPI.VSSP_ClientSetPlayHwnd(_lHandle, _WndHandle); }