Fix bringing to front minimized window
@@ -558,9 +558,11 @@ INT_PTR CALLBACK WepWindowsDlgProc(
GetWindowPlacement(selectedNode->WindowHandle, &placement);
- if (placement.showCmd == SW_MINIMIZE)
+ if (placement.showCmd == SW_SHOWMINIMIZED)
+ {
ShowWindowAsync(selectedNode->WindowHandle, SW_RESTORE);
- else
+ }
+
SetForegroundWindow(selectedNode->WindowHandle);
}
}
