From: owen Date: Wed, 15 Jan 2003 14:51:54 +0000 (+0000) Subject: Use set_icon and set_title rather than SetWindowText. Should fix X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/commitdiff_plain/7352194e71d71afd12570187e4ac678bd3c17214 Use set_icon and set_title rather than SetWindowText. Should fix inactive-title. git-svn-id: svn://svn.tartarus.org/sgt/putty@2606 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/window.c b/window.c index aac6ac6a..ac8ac85c 100644 --- a/window.c +++ b/window.c @@ -906,7 +906,8 @@ void connection_fatal(void *frontend, char *fmt, ...) PostQuitMessage(1); else { session_closed = TRUE; - SetWindowText(hwnd, "PuTTY (inactive)"); + set_icon(NULL, "PuTTY (inactive)"); + set_title(NULL, "PuTTY (inactive)"); } } @@ -950,7 +951,8 @@ static void enact_pending_netevent(void) cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0); else { session_closed = TRUE; - SetWindowText(hwnd, "PuTTY (inactive)"); + set_icon(NULL, "PuTTY (inactive)"); + set_title(NULL, "PuTTY (inactive)"); MessageBox(hwnd, "Connection closed by remote host", "PuTTY", MB_OK | MB_ICONINFORMATION); }