]> khamidou — GitHub mirrors - electron.git/commitdiff
[Win] No need to manually to control the visibility of maximize button.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 8 Jul 2013 09:09:11 +0000 (17:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 8 Jul 2013 09:09:11 +0000 (17:09 +0800)
browser/native_window_win.cc

index 49be93b21a56e2e1a91a8cc931c0e3b210395e87..ff42210013f0b09b964eb309893a56c088b6f53b 100644 (file)
@@ -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() {