When you are proceeding a window message then the default window is the window that receives the message. If you are not proceeding a message then default window is the last used window.