Fix INP in OSAI

This commit is contained in:
Nicola Carminati
2019-04-30 09:24:05 +02:00
parent 3d68ac9b26
commit 35573b2bf8
+7
View File
@@ -1009,6 +1009,13 @@ namespace Active_Client.View
//Read the actual ID of the Process
GetWindowThreadProcessId(hwnd, out ActualPID);
//Delete the TOPMOST Style of the Window
if (NcProcessPID != 0 && ActualPID == NcProcessPID)
{
if (state == NcState.SHOW)
SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE);
}
//If the PID is the STEP-HMI Process
if (ActualPID == MainProcessPID)
{