This function allows the general positioning of a window.

Note: Messages may be received from other processes or threads during the processing of this function.