mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+ fix: disabled Find/Replace or Customize Schemes (by modal child) dialog should disable main window too
This commit is contained in:
parent
fdc07300c2
commit
f452d6a51f
@ -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:
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user