Prerequisites
Windows 11 ships with the WebView2 runtime pre-installed. Windows 10
auto-downloads and installs it the first time it is needed. You can also
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 share the application-level menu set viaapp.setMenu().
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.