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

oldstable
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;
case WM_QUERYENDSESSION:
if (DoCloseFile()) {
return 1;
}
break;
case WM_DESTROY:
PostQuitMessage(0);
break;