setting windowInfo.ex_style = WS_EX_TOPMOST doesn't work

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

setting windowInfo.ex_style = WS_EX_TOPMOST doesn't work

Postby dverma05 » Wed Feb 10, 2016 5:04 am

Hi,

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".
dverma05
Techie
 
Posts: 35
Joined: Wed Apr 01, 2015 5:23 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 212 guests