mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
Processing WM_CLOSE with the right return value
Ref: https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close
This commit is contained in:
parent
5c6fbd3310
commit
de75f56676
@ -2206,6 +2206,9 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
|
||||
if (_isEndingSessionButNotReady)
|
||||
::DestroyWindow(hwnd);
|
||||
|
||||
if (message == WM_CLOSE)
|
||||
return 0;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user