mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -05:00
Roman Pompejus's suggestion: do sensible things with focus when the
event log window appears or disappears. [originally from svn r892]
This commit is contained in:
parent
bde2f9ac8a
commit
34af1c4f1a
3
windlg.c
3
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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user