When window is offscreen, use the main screen for screen max Y to prevent the window disappearing.
When window is offscreen, use the main screen for screen max Y to prevent
the window disappearing.

windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla,windoze/scintilla