Force minimum window size on Windows

Fixes #579
This commit is contained in:
Sascha Willems 2020-01-24 09:52:26 +01:00
parent 498066749d
commit db1d12d77f

View file

@ -1263,6 +1263,13 @@ void VulkanExampleBase::handleMessages(HWND hWnd, UINT uMsg, WPARAM wParam, LPAR
} }
} }
break; break;
case WM_GETMINMAXINFO:
{
LPMINMAXINFO minMaxInfo = (LPMINMAXINFO)lParam;
minMaxInfo->ptMinTrackSize.x = 64;
minMaxInfo->ptMinTrackSize.y = 64;
break;
}
case WM_ENTERSIZEMOVE: case WM_ENTERSIZEMOVE:
resizing = true; resizing = true;
break; break;