I am setting "windowInfo.ex_style" as "WS_EX_TOPMOST" in "OnBeforePopup" as below:
- Code: Select all
bool ClientHandler::OnBeforePopup(
CefRefPtr<CefBrowser> browser,
CefRefPtr<CefFrame> frame,
const CefString& target_url,
const CefString& target_frame_name,
CefLifeSpanHandler::WindowOpenDisposition target_disposition,
bool user_gesture,
const CefPopupFeatures& popupFeatures,
CefWindowInfo& windowInfo,
CefRefPtr<CefClient>& client,
CefBrowserSettings& settings,
bool* no_javascript_access) {
CEF_REQUIRE_IO_THREAD();
// Return true to cancel the popup window.
if (user_gesture == false)
{
windowInfo.ex_style = WS_EX_TOPMOST;
}
return !CreatePopupWindow(browser, false, popupFeatures, windowInfo, client,
settings);
}
But this doesn't making the popup window as topmost. Do I need to handle it somewhere else in 'CreatePopupWindow()' or setting here itself will do the job.
I am using Windows 32bit of "CEF 3.2526.1359.gced449a".