wxWidgets - integrate with CEF

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.

wxWidgets - integrate with CEF

Postby gerard989797 » Wed Apr 19, 2017 8:36 am

Hello,
i like to use the wxWidgets frame to integrate with CEF on c++.
I searched this forum and found the https://github.com/sjlamerton/wxWebViewChromium.

But this is 3 years old. Is there a newer starting point for CEF3 and wxWidgets ?

Thank you
gerard989797
Techie
 
Posts: 11
Joined: Sun Apr 09, 2017 5:24 pm

Re: wxWidgets - integrate with CEF

Postby Czarek » Wed Apr 19, 2017 10:56 am

I was recently talking to some guy that wanted to continue this work, but he had some issues and abandoned the idea. Last mention of CEF on wx-users group is from 2013, so doesn't look like anyone else did any progress. There is this fork that updated to Chromium v43: https://github.com/siena123/wxWebViewCh ... 3d471c166f .
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: wxWidgets - integrate with CEF

Postby gerard989797 » Fri Apr 21, 2017 9:23 am

Hi,
thank you for answer.
I checked out the updated files wxWebViewChromium sample and could build and run the sample.
Unfortunately, it crashes because it accesses an invalid browser instance.

What i need is simply a cross platform framework, like wxWidgets as host for the CEF stuff.
I mean the challenge is only to have a windows host for the CEF or the webview.

So far i just found samples which are actually all not working:

gtk
- http://blog.erikd.org/2013/01/14/chromi ... are-bones/
wxWidgets
- https://github.com/siena123/wxWebViewCh ... 23485f0cd1
MFC
- http://mickeymickstechblog.blogspot.de/ ... oject.html

What they have in common, is using an older version of CEF where for instance a sandbox pointer is not
required to pass to CefInitialize.


I thinkg it sould be simple, just to have a framework and to host CEF in that frameworks mainframe or
to creat an own frame. I am just not sure how to deal with the messages queue of CEF and the message queue
of the framework.
Backgroud: I simply want to use CEF as a gui for my application.
Concrete questions:
I have a framework, which has WinMain and an OnInit. What i understood so far from CEF is to call some functions
Code: Select all
CefInitialize
        CreateBrowser;

and may
Code: Select all
  CefRunMessageLoop();
  CefShutdown();

Where do i have to call those functions (what thread).
Thank you for any hint.
gerard989797
Techie
 
Posts: 11
Joined: Sun Apr 09, 2017 5:24 pm

Re: wxWidgets - integrate with CEF

Postby amaitland » Fri Apr 21, 2017 9:36 am

CEF already provides a cross platform GUI, it's called 'views'. Maybe it suites your needs?
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: wxWidgets - integrate with CEF

Postby gerard989797 » Fri Apr 21, 2017 9:43 am

Thank you for that hint.
The problem: I already have much wxWidgets stuff and i would like to have the option still to use this in a kind of hybrid
application.
Also, if there is a cp framework with CEF, what is the entry function.

In the cef client example (for windows) i have a windows specific entry:

Code: Select all
// Program entry point function.
int APIENTRY wWinMain(HINSTANCE hInstance,
                      HINSTANCE hPrevInstance,
                      LPTSTR    lpCmdLine,
                      int       nCmdShow) {
  UNREFERENCED_PARAMETER(hPrevInstance);
  UNREFERENCED_PARAMETER(lpCmdLine);
  return client::RunMain(hInstance, nCmdShow);
}
gerard989797
Techie
 
Posts: 11
Joined: Sun Apr 09, 2017 5:24 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 100 guests