Bring up the File->Save dialog when receiving WM_QUERYENDSESSION.
This commit is contained in:
parent
c396cdcc0a
commit
d4779e20c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue