Skip to content
/ wv2 Public

C/C++ wrapper for Microsoft Edge WebView2 Control

License

Notifications You must be signed in to change notification settings

smok95/wv2

Folders and files

NameName
Last commit message
Last commit date
Dec 12, 2022
Mar 5, 2025
Mar 5, 2025
Mar 5, 2025
Jul 9, 2021
Jul 7, 2021
Sep 27, 2024
Jul 7, 2021
Jul 22, 2021
Mar 5, 2025
Jul 7, 2021
Sep 20, 2024
Sep 20, 2024

Repository files navigation

wv2

Note: This project is not yet stable, and API changes may occur frequently.

Introduction

C/C++ wrapper for Microsoft Edge WebView2 Control

Example

This example demonstrates a basic Win32 application that integrates Microsoft's WebView2 control to navigate to a web page.

BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{
   ...
   HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL, NULL, hInstance, NULL);
   if (!hWnd) return FALSE;

   LPCWSTR url = L"https://www.youtube.com";
   
   if (webview = wv2createSync2(NULL, NULL, NULL, hWnd)) {
       wv2navigate(webview, url);
   } 

   ShowWindow(hWnd, nCmdShow);
   UpdateWindow(hWnd);

   return TRUE;
}

About

C/C++ wrapper for Microsoft Edge WebView2 Control

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published