mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
[Win] No need to manually to control the visibility of maximize button.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user