registry.... wndproc

This commit is contained in:
Brady McDermott
2024-10-20 21:15:17 -06:00
parent 21271a7c4b
commit b335db994a
2 changed files with 2 additions and 8 deletions

View File

@@ -68,6 +68,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
return DefFrameProc(hWnd, hWndMDIClient, message, wParam, lParam);
case WM_CLOSE:
case WM_ENDSESSION:
if (bSaveSettings)
SaveConfig(TRUE, TRUE, TRUE, TRUE);
@@ -77,10 +78,6 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
PostQuitMessage(0);
break;
case WM_ENDSESSION:
PostQuitMessage(0);
break;
default:
return DefFrameProc(hWnd, hWndMDIClient, message, wParam, lParam);
}