From: Cheng Zhao Date: Mon, 8 Jul 2013 09:09:11 +0000 (+0800) Subject: [Win] No need to manually to control the visibility of maximize button. X-Git-Tag: v0.1.0~10 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=528e6d2679e7fe0b53e71748176e5879e97cedaf;p=electron.git [Win] No need to manually to control the visibility of maximize button. --- diff --git a/browser/native_window_win.cc b/browser/native_window_win.cc index 49be93b2..ff422100 100644 --- a/browser/native_window_win.cc +++ b/browser/native_window_win.cc @@ -144,14 +144,6 @@ gfx::Size NativeWindowWin::GetMaximumSize() { void NativeWindowWin::SetResizable(bool resizable) { resizable_ = resizable; - - // Show/Hide the maximize button. - DWORD style = ::GetWindowLong(window_->GetNativeView(), GWL_STYLE); - if (resizable) - style |= WS_MAXIMIZEBOX; - else - style &= ~WS_MAXIMIZEBOX; - ::SetWindowLong(window_->GetNativeView(), GWL_STYLE, style); } bool NativeWindowWin::IsResizable() {