# wxWebViewChromium **Repository Path**: 7thTool/wxWebViewChromium ## Basic Information - **Project Name**: wxWebViewChromium - **Description**: wxWebViewChromium - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2023-01-11 - **Last Updated**: 2024-06-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README wxWebViewChromium ================= wxWebViewChromium is a Chromium backend for wxWebView using the Chromium Embedded Framework. For more detailed information, please see the project [wiki][1]. Requirements ------------ * [wxWidgets][2]: r73369 / 2.9.5 or greater * [Chromium Embedded Framework][3]: 1.963.439, 1.1025.607, 1.1180.832, 1.1364.1123, 3.1364.1188, 3.1453.1255, 3.1547.1412 or 3.1650.1562. Compiling --------- The backend is made up of five files, a source and header file for CEF1 and CEF3 and a selection header. Simply compile these alongside your project and add the path to your Chromiumium Embedded Framework install to your include directory list and link to `libcef_dll_wrapper` and `libcef`. * 第一步下载cef二进制库并以CMAKE构建(可以去掉USE_SANDBOX勾选)和编译:https://cef-builds.spotifycdn.com/index.html#windows32:3 或者 解压cef目录下已经编译好的的二进制库 编译可能的错误: CefString markedText("か"); 改成:CefString markedText("demo"); GetWindowLongPtr(parent_handle, GWL_EXSTYLE) & WS_EX_NOACTIVATE; 改成:(GetWindowLongPtr(parent_handle, GWL_EXSTYLE) & WS_EX_NOACTIVATE) ? true : false; * 第二步cmake构建该工程,需要指定依赖库目录,多个路径windows使用;分割,linux使用:分割 -DCMAKE_PREFIX_PATH=D:\boost_1_81_0;D:\zqdb\3rd\x86-windows-static;D:\wxWidgets\wxWidgets-3.1.5 -DCEF_ROOT_DIR=D:/wxWebViewChromium/Windows/x86 * 第三步将所有工程运行库改为MTd/MT * 第四步运行时将cef目录下的Debug/Release目录下的文件和Resources目录下的文件拷贝到运行程序目录 Using ----- To use wxWebViewChromium first register the backend with wxWidgets wxWebView::RegisterFactory(wxWebViewBackendChromium, wxSharedPtr (new wxWebViewFactoryChromium)); It can then be used in a standard `wxWebView::New` call wxWebView* webview = wxWebView::New(this, wxID_ANY, "http://www.wxwidgets.org/", wxDefaultPosition, wxDefaultSize, wxWebViewBackendChromium); [1]: https://github.com/steve-lamerton/wxWebViewChromium/wiki [2]: http://www.wxwidgets.org [3]: http://code.google.com/p/chromiumembedded/