win: Show minimize button for unresizable window, fixes #411.
This commit is contained in:
parent
72e8b2882f
commit
a8ca0329b4
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ void NativeWindowViews::SetResizable(bool resizable) {
|
|||
if (resizable)
|
||||
style |= WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME;
|
||||
else
|
||||
style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_THICKFRAME);
|
||||
style = (style & ~(WS_MAXIMIZEBOX | WS_THICKFRAME)) | WS_MINIMIZEBOX;
|
||||
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, style);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue