`windows-reactor`: Access to the native window handle (and positioning) before first activation
Author: riverarCreated Sep 22, 2026Updated Sep 22, 2026
Labelsenhancement
Suggestion
Opening a window anchored to an on-screen point (e.g., a flyout next to a tray icon from NotifyIconEvent::Activate { position }) currently requires repositioning the window after open_window, which is only possible through Win32 interop on the raw handle, and the only handle access is ComponentContext::run_window, which runs after the publication commits. The window is already visible by then, so the move is perceivable by the user.
I'd like a component-facing way to touch the native window (HWND) before its first activation. Alternatively, you could provide a preferred position via ComponentContext. Open to discussion there.
Source: microsoft/windows-rs