Processing WM_CLOSE with the right return value

Ref:
https://docs.microsoft.com/en-us/windows/win32/winmsg/wm-close
pull/11871/head
Don Ho 2 years ago
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…
Cancel
Save