From 34af1c4f1a21455928022096c35e1a95e7032cc4 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 23 Jan 2001 17:40:51 +0000 Subject: [PATCH] Roman Pompejus's suggestion: do sensible things with focus when the event log window appears or disappears. [originally from svn r892] --- windlg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/windlg.c b/windlg.c index 18d1abae..6b7314d4 100644 --- a/windlg.c +++ b/windlg.c @@ -56,6 +56,7 @@ static int CALLBACK LogProc (HWND hwnd, UINT msg, case IDOK: case IDCANCEL: logbox = NULL; + SetActiveWindow(GetParent(hwnd)); DestroyWindow (hwnd); return 0; case IDN_COPY: @@ -110,6 +111,7 @@ static int CALLBACK LogProc (HWND hwnd, UINT msg, return 0; case WM_CLOSE: logbox = NULL; + SetActiveWindow(GetParent(hwnd)); DestroyWindow (hwnd); return 0; } @@ -1991,6 +1993,7 @@ void showeventlog (HWND hwnd) { hwnd, LogProc); ShowWindow (logbox, SW_SHOWNORMAL); } + SetActiveWindow(logbox); } void showabout (HWND hwnd) {