ACAT.Extensions.Default.FunctionalAgents.FileBrowserAgent.FileBrowserAgent.activateWindow C# (CSharp) 메소드

activateWindow() 개인적인 메소드

Activates the window represented by the handle and sets it as the foreground window
private activateWindow ( IntPtr handle ) : void
handle System.IntPtr
리턴 void
        private void activateWindow(IntPtr handle)
        {
            if (handle != IntPtr.Zero)
            {
                User32Interop.BringWindowToTop(handle);
                User32Interop.SetFocus(handle);
                Thread.Sleep(1000);
                Windows.SetForegroundWindow(handle);
            }
        }