Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 1.46 KB

README.md

File metadata and controls

31 lines (24 loc) · 1.46 KB

wxWebViewBlink

Bring a modern and lightweight WebView control to wxWidgets on Microsoft Windows.

wxWebViewBlink is a Chromium webview backend for wxWidgets using weolar's MiniBlink, a lite version of Blink core of Google Chromium.

Compatibility

  • Support all Windows starting from Windows XP.
  • Linked to system origin msvcrt.dll directly, NOT rely on VS runtime library.
  • Passed all wxWebView test except Find in page and Print feature, you can try changing WebView sample in wxWidgets to use wxWebViewBlink.

Usage

  1. Download compiled binary release from here. Or, you can compile by yourself from my own fork of MiniBlink.

  2. Define USE_WEBVIEW_MINIBLINK=1 in your project configuration.

  3. Include WebViewMiniBlink.h in your code.

  4. Create instance of wxWebViewBlink by using wxWebViewBackendMiniBlink backend:

    const char* backend =
#if USE_WEBVIEW_MINIBLINK
    wxWebViewBackendMiniBlink;
#else
    wxWebViewBackendDefault;
#endif
    wxWebView::New(this, ID_WEBVIEW, wxEmptyString, wxDefaultPosition, GetClientSize(), backend);
  1. Put node.dll in your app's directory.
  2. If you think the binary of MiniBlink is huge, use UPX to compress it to a much smaller one (~5MiB).