How can I set cef default window size?

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.

How can I set cef default window size?

Postby godlike » Wed Dec 19, 2012 1:01 am

How can I set cef default window size? :idea:
godlike
Newbie
 
Posts: 7
Joined: Wed Nov 21, 2012 3:22 am

Re: How can I set cef default window size?

Postby MartinM » Wed Dec 19, 2012 3:16 am

On Windows:
In cefclient_win.cpp, have a look at the function InitInstance.
There you'll find a call to CreateWindow, where you can specify the size an position of the window. CEF will create a browser window of the exact same size.

CreateWindow on MSDN
MartinM
Techie
 
Posts: 25
Joined: Wed Nov 07, 2012 5:21 am

Re: How can I set cef default window size?

Postby godlike » Wed Dec 26, 2012 5:22 am

非常感谢!!! :D
Thx!
godlike
Newbie
 
Posts: 7
Joined: Wed Nov 21, 2012 3:22 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 195 guests