mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
This change adds a `--use-default-popup` command-line option to cefclient. When specified, popup windows will be created with default styling (e.g. without an application-provided native parent window). This change also adds some reasonable default window bounds in cases where they are not specified by the client.
This commit is contained in:
@@ -178,6 +178,11 @@ void CefBrowserPlatformDelegateNativeWin::BrowserDestroyed(
|
||||
bool CefBrowserPlatformDelegateNativeWin::CreateHostWindow() {
|
||||
RegisterWindowClass();
|
||||
|
||||
if (window_info_.style == 0) {
|
||||
// Client didn't intialize the CefWindowInfo. Provide reasonable defaults.
|
||||
window_info_.SetAsPopup(nullptr, CefString());
|
||||
}
|
||||
|
||||
has_frame_ = !(window_info_.style & WS_CHILD);
|
||||
|
||||
std::wstring windowName(CefString(&window_info_.window_name));
|
||||
|
Reference in New Issue
Block a user