This reverts commit 7c701367c0
.
This commit is contained in:
parent
477aa389e6
commit
a72acfc535
1 changed files with 4 additions and 3 deletions
|
@ -340,14 +340,15 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options,
|
||||||
// Set Window style so that we get a minimize and maximize animation when
|
// Set Window style so that we get a minimize and maximize animation when
|
||||||
// frameless.
|
// frameless.
|
||||||
DWORD frame_style = WS_CAPTION | WS_OVERLAPPED;
|
DWORD frame_style = WS_CAPTION | WS_OVERLAPPED;
|
||||||
if (resizable_ && thick_frame_)
|
if (resizable_)
|
||||||
frame_style |= WS_THICKFRAME;
|
frame_style |= WS_THICKFRAME;
|
||||||
if (minimizable_)
|
if (minimizable_)
|
||||||
frame_style |= WS_MINIMIZEBOX;
|
frame_style |= WS_MINIMIZEBOX;
|
||||||
if (maximizable_)
|
if (maximizable_)
|
||||||
frame_style |= WS_MAXIMIZEBOX;
|
frame_style |= WS_MAXIMIZEBOX;
|
||||||
if (!thick_frame_ || !has_frame())
|
// We should not show a frame for transparent window.
|
||||||
frame_style &= ~WS_CAPTION;
|
if (!thick_frame_)
|
||||||
|
frame_style &= ~(WS_THICKFRAME | WS_CAPTION);
|
||||||
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, frame_style);
|
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, frame_style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue