Página 1 de 1
Hwgui agora tem WebView2 !
Enviado: 15 Set 2026 16:55
por Itamar M. Lins Jr.
Olá!
Arrumando a papelada para fazer o commit.
O que é isso ? É a possibilidade de chamar o navegador por dentro do nossos sistemas.
O navegador fica GRUDADO na janela da Hwgui.
São coisas que tinhamos e foi perdido quando a Microsoft, aboliu o activex. Ainda tem, mas tá limitado.

- Capturar_webview2.PNG (90.87 KiB) Exibido 51 vezes
Re: Hwgui agora tem WebView2 !
Enviado: 15 Set 2026 21:29
por Itamar M. Lins Jr.
Olá!
No caso o navegador é o Chromium que a Microsoft disponibiliza para download.
Não é Edger, nem Chrome, só o motor.
Re: Hwgui agora tem WebView2 !
Enviado: 15 Set 2026 21:48
por Itamar M. Lins Jr.
Olá!
Pronto. Já subi com as 2 dlls, basta baixar a da Microsoft apenas, e usar.
Tudo bem explicadinho.(Assim espero!)
Código: Selecionar todos
2026-09-15 21:45 UTC-0300 Itamar Junior <itamarlins@gmail.com>
* contrib/webview2: New module. Integration of Microsoft WebView2
(Edge Chromium engine) into Hwgui windows via the "webview" C/C++
library (https://github.com/webview/webview).
+ New files:
contrib/webview2/webview_wrapper.c - C++ wrapper exported as DLL
contrib/webview2/build.sh - build script (MSYS2 CLANG64)
contrib/webview2/build.bat - build script (CMD)
contrib/webview2/hbmk.hbc - hbmk2 config for Harbour
contrib/webview2/WebView2Loader.dll - Microsoft WebView2 SDK loader
contrib/webview2/webview_wrapper.dll
contrib/webview2/webview_test.prg - sample of use
+ Documentation (four languages):
doc/webview2_en.html English
doc/webview2_es.html Spanish
doc/webview2_ptbr.html Portuguese (Brazil)
doc/webview2_ru.html Russian
+ Output DLL: bin/webview_wrapper.dll
+ Exported functions:
create_webview_embedded( parent_title, title, w, h ) -> handle
navigate_webview( handle, url )
resize_webview( handle, w, h )
destroy_webview( handle )
+ Requirements:
- WebView2Loader.dll (from WebView2 SDK) in the same folder
as the executable.
- WebView2 Runtime installed on Windows (one-time, Evergreen
Standalone Installer, x64).
+ Built with Clang 22 (MSYS2 CLANG64 environment), static linking
of libc++/libunwind so it does not depend on MSYS2 DLLs at runtime.
+ Example usage in Harbour/Hwgui:
pLib := hb_LibLoad( "webview_wrapper.dll" )
hWebView := hb_DynCall( { "create_webview_embedded", pLib, ... )
- Known limitation: single instance only (uses FindWindowA by title).
- Tested on Windows 10/11, x64.
Re: Hwgui agora tem WebView2 !
Enviado: 15 Set 2026 21:54
por Itamar M. Lins Jr.
Olá!
Outro detalhe!
Com WebView2 vc pode redesenhar suas telas em HTML+CSS, misturado com Hwgui + PHP, etc,etc,etc e é claro etc.