Determining the browser window rect from a CefClient object

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.

Determining the browser window rect from a CefClient object

Postby Mayhew » Thu Dec 11, 2014 3:48 pm

I see the render handler class has a GetViewRect method, but that object is only valid in the off screen rendering case. I don't see any methods to get the main browser window size other than getting the window handle and calling native OS functions. Is there another way to get the size that I may have missed?
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm

Re: Determining the browser window rect from a CefClient obj

Postby magreenblatt » Thu Dec 11, 2014 5:59 pm

For windowed rendering the browser size will be the window size. Or am I missing something?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Determining the browser window rect from a CefClient obj

Postby Mayhew » Thu Dec 11, 2014 6:42 pm

Yes that is correct but I have a method in platform independent code that only has a CefClient pointer and no knowledge of the OS. I was hoping that there was some method or object available from the CefClient that could get me the window rect without resorting to making direct OS framework calls.
Mayhew
Expert
 
Posts: 303
Joined: Mon Apr 18, 2011 8:02 pm


Return to Support Forum

Who is online

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