From db1d12d77fcb11ef5f46c4b3f9c8df4d29eabd7b Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Fri, 24 Jan 2020 09:52:26 +0100 Subject: [PATCH] Force minimum window size on Windows Fixes #579 --- base/vulkanexamplebase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 5b03a75c..2fb65cd9 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -1263,6 +1263,13 @@ void VulkanExampleBase::handleMessages(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR } } break; + case WM_GETMINMAXINFO: + { + LPMINMAXINFO minMaxInfo = (LPMINMAXINFO)lParam; + minMaxInfo->ptMinTrackSize.x = 64; + minMaxInfo->ptMinTrackSize.y = 64; + break; + } case WM_ENTERSIZEMOVE: resizing = true; break;