win: Show minimize button for unresizable window, fixes #411.

This commit is contained in:
Cheng Zhao 2014-08-12 22:58:19 +08:00
parent 72e8b2882f
commit a8ca0329b4

View file

@ -313,7 +313,7 @@ void NativeWindowViews::SetResizable(bool resizable) {
if (resizable) if (resizable)
style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME; style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
else else
style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME); style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX;
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style); ::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style);
} }
#endif #endif