Bring application to topmost
Posted on 1998-07-06
I have several MFC Applications opened and overlapping one another (all have SW_NORMAL state). Every App does a little bit of data calculation and passes the results to the next App when the calculation is done.
How do i programmatically moves an Application(that is being hidden by others) to the toppest application when this particular Application has the control ?
I have tried AfxGetMainWnd()->BringWindowToTop(), SetFocus,
::SetForegroundWindow, SetActiveWindow... but they don't seem to work.
Sample code would be appreciated.