SetForegroundWindow() приватный Метод

private SetForegroundWindow ( IntPtr hWnd ) : bool
hWnd System.IntPtr
Результат bool
Пример #1
0
        private void SendCommandAndSwitchWindows(string command)
        {
            ClearCurrentLineMarker();

            ChangeDebugState(DebugState.Running);
            if (_engineWindowHandle != IntPtr.Zero)
            {
                NativeProxy.SetForegroundWindow(_engineWindowHandle);
            }
            _communicator.SendMessage("<Engine Command=\"" + command + "\" />");
        }
Пример #2
0
        private void SendCommandAndSwitchWindows(string command)
        {
            ClearCurrentLineMarker();

            ChangeDebugState(DebugState.Running);
            if (_engineWindowHandle != IntPtr.Zero)
            {
                if (Utilities.IsMonoRunning())
                {
                    //Is there any way of doing this in mono? I couldn't find any.
                    //I guess the user will have to bring the game back to focus by himself...
                }
                else
                {
                    NativeProxy.SetForegroundWindow(_engineWindowHandle);
                }
            }
            _communicator.SendMessage("<Engine Command=\"" + command + "\" />");
        }