Microsoft Windows Server 2016 Datacenter
10.0.14393 Build 14393
Microsoft Windows 10 Pro for Workstations
10.0.19042 Build 19042
Code Snippets:
- Code: Select all
window_config.always_on_top = true;
window_config.with_controls = false;
window_config.with_osr = false;
root_window_ = context->GetRootWindowManager()->CreateRootWindow(window_config);
root_window_HWND = root_window_->GetWindowHandle();
...
SetWindowLongPtr(root_window_HWND, GWL_STYLE, WS_SYSMENU | WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS| WS_VISIBLE);
MoveWindow(root_window_HWND, 0, 0, width, height, TRUE);
UpdateWindow(root_window_HWND);
//NO Change now...
or
ShowWindow(root_window_HWND, SW_SHOWMAXIMIZED);
//NO Change here either now...
I gather this has something to do with https://bitbucket.org/chromiumembedded/cef/issues/2969/support-chrome-windows-with-cef-callbacks, but I'm not sure I completely follow it.