#Windows
Michael,
Ray is correct; when you close your window the previously active one will be
re-activated.
If you don't want to close and yet activate the previous one, try this: Get
the FirstWindow from the screen struct. Step thru the linked list of windows
until you find one with the ACTIVATED (I think) flag set, and save the pointer
to it. Then open your window. When you want, you can then use ActivateWindow()
on the saved pointer.
This is dangerous if the other window is not yours. The other program may
have made that window go away. With the proper safeguards it could be done.
—Mike