Make sure frame is frameless
This commit is contained in:
parent
4b20ac3dc6
commit
24f8c51959
1 changed files with 4 additions and 3 deletions
|
@ -226,8 +226,9 @@ NativeWindowViews::NativeWindowViews(content::WebContents* web_contents,
|
|||
options.Get(switches::kUseContentSize, &use_content_size_) &&
|
||||
use_content_size_)
|
||||
bounds = ContentBoundsToWindowBounds(bounds);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
else {
|
||||
if (!has_frame_) {
|
||||
// set Window style so that we get a minimize and maximize animation when frameless
|
||||
DWORD frame_style = WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION;
|
||||
::SetWindowLong(GetAcceleratedWidget(), GWL_STYLE, frame_style);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue