flutter: windows: Disable Maximize button

See: https://bbs.csdn.net/topics/330001263
(cherry picked from commit d9f973312a)
This commit is contained in:
Calcitem 2021-05-13 22:31:50 +08:00
parent c01aee9b43
commit e1208ea13a
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ bool Win32Window::CreateAndShow(const std::wstring& title,
double scale_factor = dpi / 96.0;
HWND window = CreateWindow(
window_class, title.c_str(), WS_OVERLAPPEDWINDOW | WS_VISIBLE,
window_class, title.c_str(), WS_OVERLAPPED | WS_SYSMENU | WS_MINIMIZEBOX | WS_VISIBLE,
Scale(origin.x, scale_factor), Scale(origin.y, scale_factor),
Scale(size.width, scale_factor), Scale(size.height, scale_factor),
nullptr, nullptr, GetModuleHandle(nullptr), this);