mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
win: Show minimize button for unresizable window, fixes #411.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user