Collapsed window when using CEF views

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.

Collapsed window when using CEF views

Postby rcxr » Wed Aug 15, 2018 1:01 pm

Hi. I am using CEF to build a Windows app and I would love to use the CEF Views framework to customize the window look and feel. However after implementing CEF Views (I used the code from cefsimple), I only saw a small collapsed window with the "minimize", "maximize" and "close" buttons. Not even the icon or the title were loaded.
I double checked my implementation and couldn't find anything wrong so I decided to build and run "cefsimple.exe --use-views" (see: https://bitbucket.org/chromiumembedded/ ... dows-setup) and was able to reproduce the issue: only a small window with the "minimize", "maximize" and "close" buttons, with no icon and with no title.

Is this something expected? Is the cefsimple sample code out of date?

I'm trying to reproduce this issue in another computer (one without work-related stuff) but I would like to know if someone else has seen this, and if it's a legit bug.

FWIW, I saw some references of this issue in this post. In particular:
"Cefsimple with use-views (i.e. CreateBrowserView ans so on) got also small box with minimize,maximize & close buttons only..."
(from viewtopic.php?f=6&t=15260&p=35451)
rcxr
Newbie
 
Posts: 3
Joined: Wed Aug 15, 2018 12:26 pm

Re: Collapsed window when using CEF views

Postby magreenblatt » Wed Aug 15, 2018 1:14 pm

You need to implement GetPreferredSize. See https://bitbucket.org/chromiumembedded/cef/issues/2269
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 123 guests