1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-22 14:39:24 -05:00

Use set_icon and set_title rather than SetWindowText. Should fix

inactive-title.

[originally from svn r2606]
This commit is contained in:
Owen Dunn 2003-01-15 14:51:54 +00:00
parent 55a996614b
commit 8cb6506cd3

View File

@ -906,7 +906,8 @@ void connection_fatal(void *frontend, char *fmt, ...)
PostQuitMessage(1); PostQuitMessage(1);
else { else {
session_closed = TRUE; 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); cfg.close_on_exit == COE_NORMAL) PostQuitMessage(0);
else { else {
session_closed = TRUE; session_closed = TRUE;
SetWindowText(hwnd, "PuTTY (inactive)"); set_icon(NULL, "PuTTY (inactive)");
set_title(NULL, "PuTTY (inactive)");
MessageBox(hwnd, "Connection closed by remote host", MessageBox(hwnd, "Connection closed by remote host",
"PuTTY", MB_OK | MB_ICONINFORMATION); "PuTTY", MB_OK | MB_ICONINFORMATION);
} }