From a8ca0329b4446d0fe924f9f9aaf6010ef9e092d7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 12 Aug 2014 22:58:19 +0800 Subject: [PATCH] win: Show minimize button for unresizable window, fixes #411. --- atom/browser/native_window_views.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 2b9b0bebd4fe..09b65ac77b00 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -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