Bring up the File->Save dialog when receiving WM_QUERYENDSESSION.

This commit is contained in:
Francois Gouget 2004-10-08 20:49:24 +00:00 committed by Alexandre Julliard
parent c396cdcc0a
commit d4779e20c8
1 changed files with 6 additions and 0 deletions

View File

@ -149,6 +149,12 @@ static LRESULT WINAPI NOTEPAD_WndProc(HWND hWnd, UINT msg, WPARAM wParam,
} }
break; break;
case WM_QUERYENDSESSION:
if (DoCloseFile()) {
return 1;
}
break;
case WM_DESTROY: case WM_DESTROY:
PostQuitMessage(0); PostQuitMessage(0);
break; break;