Windows
Windows uses the native MSVC toolchain. The default backend targets Windows 10 and later; HUXERUI_WINDOWS_7_COMPAT=ON enables capability-based fallbacks for Windows 7 SP1 with Platform Update.
huxerui setup windowshuxerui run windowsThe platform host owns Win32 window lifecycle, pointer/keyboard/IME conversion, UI-thread scheduling, accessibility, clipboard, files, HTTP, and rendering. HuxerUI geometry uses DIPs; screen, DPI, UTF-16, and IME coordinates are converted at the boundary.
Custom desktop chrome uses WindowChromeMode::Custom, WindowTitleBar, and UseWindow(). The framework renders caption controls while preserving native window commands and hit testing.
Register HWND-backed views with <huxerui/windows/platform_registry.h>. Windows uses a single HuxerUI render surface with platform-view placement slices, so native HWND content cannot provide arbitrary rotation, path clipping, or transparent interleaving with HuxerUI paint. External texture sources in <huxerui/windows/external_texture.h> are the better fit for pixel-only integration.
The backend exposes the shared semantic tree through Windows UI Automation. Validate custom chrome, DPI transitions, IME placement, HWND slicing, and assistive technology on the Windows versions your application supports.
System capability boundaries
Section titled “System capability boundaries”Local notifications require explicit windows::RegisterLocalNotifications before RunApplication, with a stable app ID and CLSID. URL integration similarly uses windows::RegisterUrlScheme. Both are application-entry responsibilities, not hidden CMake metadata. Notification clicks enter OnActivation, including process-launch clicks. Windows 7 compatibility does not provide notifications.
See Local notifications for shared usage and platform configuration, and System API for exact contracts.
Application and window ownership
Section titled “Application and window ownership”The application Runtime shares services, ordinary tasks and observable State across its UI attachments. Each UiWindow owns composition, focus, layers and presentation. This desktop backend implements OpenWindow; each created window has independent UI state and a fresh root Environment. See Application and windows.
System-theme preference is window-local and observed through UseSystemThemeBrightness. Custom font families retain application-supplied static data; test fallback and platform text scaling with localized content. Native runtime/device validation remains separate from website contract checks.

