Open Opened Netch Window using win32 apis

This commit is contained in:
ChsBuffer
2021-03-05 21:19:10 +08:00
parent 7e65ae0b6b
commit 9cbb88c886

View File

@@ -123,22 +123,8 @@ namespace Netch
if (handle.IsNull)
return;
ShowWindow(handle, ShowWindowCommand.SW_RESTORE);
SetWindowPos(handle,
HWND.HWND_TOPMOST,
0,
0,
0,
0,
SetWindowPosFlags.SWP_NOACTIVATE | SetWindowPosFlags.SWP_NOMOVE | SetWindowPosFlags.SWP_NOSIZE | SetWindowPosFlags.SWP_SHOWWINDOW);
SetWindowPos(handle,
HWND.HWND_NOTOPMOST,
0,
0,
0,
0,
SetWindowPosFlags.SWP_NOACTIVATE | SetWindowPosFlags.SWP_NOMOVE | SetWindowPosFlags.SWP_NOSIZE | SetWindowPosFlags.SWP_SHOWWINDOW);
ShowWindow(handle, ShowWindowCommand.SW_NORMAL);
SwitchToThisWindow(handle, true);
}
}
}