Is it possible to reparent the cefBrowser after it has been created? Currently I am creating the browser in the standard way as shown below by passing in the XID of its parent to the windowInfo variable. For our use case we need to reparent the browser when our main process quits but cannot find a way to do so.
- Code: Select all
CefWindowInfo windowInfo;
CefRect rc(0, 0, 320, 320);
windowInfo.SetAsChild(parentXID, rc);
CefBrowserSettings browserSettings;
CefBrowserHost::CreateBrowser(windowInfo, this, "", browserSettings, nullptr, nullptr);