#pragma once #include "popout_window.h" // Custom WM_APP message for thread-safe topmost toggling (pump thread handles it). static constexpr UINT WM_RRPOPOUT_SET_TOPMOST = WM_APP + 1; int CreatePopoutWindow(const wchar_t* title, int width, int height); void DestroyPopoutWindow(int handle); PopoutWindow* GetPopoutWindow(int handle); void GetPopoutWindowSize(int handle, int* w, int* h); int PollPopoutInputEvents(int handle, InputEvent* outEvents, int maxEvents); // A registered PopoutWindow with no OS window/thread — used as a shared UI-state // holder for the in-game overlay so it can reuse all the popout's state exports // (status text, loco/location lists, rotation, follow, etc.) and BuildMapUI. int CreateHeadlessWindow(); int GetOrCreateOverlayStateHandle();