/// <summary> /// 关闭winform程序的摄像机界面 /// </summary> public void closeCameraUI() { if (kbpr != null && !kbpr.HasExited) { kbpr.Kill(); ToolControlTaskBar.ShowTaskBar(); } }
/// <summary> /// 打开winform程序的摄像机界面 /// </summary> /// <param name="path"></param> public void openCameraUI(string path) { kbpr = new Process(); kbpr.StartInfo.FileName = path; kbpr.Start(); SetWindowPos(kbpr.MainWindowHandle, -1, 880, 500, -5, 500, 1 | 2); SetWindowLong(kbpr.MainWindowHandle, GWL_STYLE, WS_BORDER); SetForegroundWindow(kbpr.MainWindowHandle); ToolControlTaskBar.HideTaskBar(); }
void OnApplicationQuit() { ToolControlTaskBar.ShowTaskBar(); }
void Start() { ///HideTaskBar ToolControlTaskBar.HideTaskBar(); }
private void OnDestroy() { ToolControlTaskBar.ShowTaskBar(); }