How do you bring an application to the front? Not a window of an application (SetWindowPos()), but the whole application?
I won't go into the why, but I have an app. with a dialog that opens a second dialog in a separate thread. I disable the calling dialog that starts this thread so that the thread acts more modal. When the dialog in the thread gets dismissed, I re-enable the calling dialog. What happens, though, is that the calling dialog's application doesn't have focus anymore. I want the calling dialog/application to have focus. I tried using SetWindowPos() but that doesn't work unless you use the wndTopMost flag. But I don't want it to be top most permanently (which is what happens), but just to maintain its focus.
Any ideas?
Thanks in advance