Use set_icon and set_title rather than SetWindowText. Should fix
authorowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 15 Jan 2003 14:51:54 +0000 (14:51 +0000)
committerowen <owen@cda61777-01e9-0310-a592-d414129be87e>
Wed, 15 Jan 2003 14:51:54 +0000 (14:51 +0000)
inactive-title.

git-svn-id: svn://svn.tartarus.org/sgt/putty@2606 cda61777-01e9-0310-a592-d414129be87e

window.c

index aac6ac6..ac8ac85 100644 (file)
--- 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);
        }