Archive: Is there a way to bring another window to top?


Is there a way to bring another window to top?
Is it possible to bring another window to top?

I know that I can send the installer to the background witn "HideWindow", but I want to bring another window to top.

Reason:
I try to close a running program (using SendMessage <thehwnd> ${WM_CLOSE})
But this program has an "Are you sure to exit?" dialog. This program stays behind other windows, so the user doesn't see the question, he thinks the installer hangs.

Is there a solution for this? (Next to writing an external dll doing it in C)

cu
Gnaddelwarz


Use:

System::Call "user32::SetForegroundWindow(i <thehwnd>)"