[Win] No need to manually to control the visibility of maximize button.

This commit is contained in:
Cheng Zhao 2013-07-08 17:09:11 +08:00
parent 739465582f
commit 528e6d2679

View 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() {