From 7352194e71d71afd12570187e4ac678bd3c17214 Mon Sep 17 00:00:00 2001 From: owen Date: Wed, 15 Jan 2003 14:51:54 +0000 Subject: [PATCH] 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 --- window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } -- 2.11.0