WS_POPUP and CEF?

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

WS_POPUP and CEF?

Postby notepadexe » Wed Mar 28, 2018 12:30 pm

i am trying to change the window style to ws_popup with cef c++ but the window fails to show when WS_OVERLAPPEDWINDOW is not used

this is before the CreateBrowser call in the OnContextInitialized callback

Code: Select all
      window_info.x = CW_USEDEFAULT;
      window_info.y = CW_USEDEFAULT;
      window_info.width = 451;
      window_info.style = WS_POPUP | WS_VISIBLE;
      window_info.height = 451;


this worked fine for the c api but refuses with the c++ one. the program will be in the task bar but no window can show w/ it?
notepadexe
Techie
 
Posts: 16
Joined: Mon Feb 19, 2018 3:13 pm

Re: WS_POPUP and CEF?

Postby Czarek » Thu Mar 29, 2018 12:46 am

How about setting style to WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_VISIBLE?

Try also search: https://www.google.com/search?q=site%3A ... g+WS_POPUP
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: WS_POPUP and CEF?

Postby notepadexe » Thu Mar 29, 2018 3:03 am

i resolved it after changing some more data in the window_info struct. it turns out i had made a silly mistake by setting the width and height as CW_USEDEFAULT , this was preventing the WS_POPUP style only from working

after fixing my mistake and providing a real width and height it works fine with WS_POPUP | WS_VISIBLE :roll: :oops:
notepadexe
Techie
 
Posts: 16
Joined: Mon Feb 19, 2018 3:13 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 18 guests