Prerequisites
Windows 11 ships with the WebView2 runtime pre-installed. Windows 10
needs WebView2 supplied by a current Microsoft Edge installation or installed
separately. WebviewJS does not install the runtime. You can pre-install it
manually using the Evergreen
bootstrapper
from Microsoft.
Supported architectures
Windows-specific creation options
Pass these fields in theBrowserWindowOptions object when calling app.createBrowserWindow(). They are silently ignored on other platforms.
Windows runtime methods
These methods are Windows-specific and safe to call on any platform — they return neutral values or do nothing outside Windows.Progress bar
Integrate with the Windows taskbar progress indicator:ProgressBarState values: None · Normal · Indeterminate · Paused · Error
IPC on Windows
Menu bar
On Windows the menu bar is attached to each window’s title bar following standard Win32 behaviour. Every window can carry its own independent menu or receive the application-level menu set viaapp.setMenu(). Set the global menu
before creating windows; changing it later does not reattach the replacement to
existing windows.
Application instance:
DPI and HiDPI scaling
Tao reads the monitor’s scale factor automatically and reports it viawin.scaleFactor(). Use logical pixels when positioning child elements:
resize, move, mouse-move, etc.) arrive in physical pixels. Divide by win.scaleFactor() to convert to logical (CSS) pixels.