SelectWindow
SelectWindow Activate a window
#include <Windows.h> Window Manager
void SelectWindow(theWindow );
WindowPtr theWindow ; the window to activate
Call SelectWindow when a mouseDown event occurs in the content region of
an inactive window. It unhighlights the current active window, brings the
specified window to the front, highlights it, and generates an activate event for
the window and an update events for the affected windows.
theWindow is a WindowPtr obtained via NewWindow or GetNewWindow.
Returns: none

Notes: The previously-active window will be moved into a position directly
behind theWindow. If theWindow is already frontmost and unhidden, this
function will have no effect.
Use this after FindWindow reports that the mouse-down occurred in an
inactive window.