+ fix: disabled Find/Replace or Customize Schemes (by modal child) dialog should disable main window too

This commit is contained in:
RaiKoHoff 2020-07-02 15:58:02 +02:00
parent fdc07300c2
commit f452d6a51f
2 changed files with 9 additions and 0 deletions

View File

@ -5846,6 +5846,10 @@ static INT_PTR CALLBACK EditFindReplaceDlgProc(HWND hwnd,UINT umsg,WPARAM wParam
}
return !0; // (!) further processing
case WM_ENABLE:
// modal child dialog should disable main window too
EnableWindow(Globals.hwndMain, (BOOL)wParam);
return !0;
case WM_DESTROY:
{

View File

@ -4074,6 +4074,11 @@ INT_PTR CALLBACK Style_CustomizeSchemesDlgProc(HWND hwnd, UINT umsg, WPARAM wPar
}
return !0;
case WM_ENABLE:
// modal child dialog should disable main window too
EnableWindow(Globals.hwndMain, (BOOL)wParam);
return !0;
case WM_PAINT:
{
HDC const hDC = GetWindowDC(hwnd);