In Windows 10, when I switch between single-monitor and dual-monitor mode, VFP9 sometimes doesn't restore its debug window to the current monitor. Typing SET STEP ON or ACTIVATE WINDOW DEBUG brings up the debugger, but it's positioned off-screen somewhere. I haven't figured out a way to bring it back to the actual monitor without resetting it to default, or cascading all the windows which messes up all the other windows size and position I have open.
Does anyone know how to programmatically access it?
Is there an existing VFP tool to enumerate desktop windows, return HWNDs to them, allow searching by name, etc., so I can do something like this:
lo = CREATEOBJECT("desktop_window_helper")
lhwnd = lo.FindDesktopWindow("Visual FoxPro Debugger")
lo.SetWindowPosition(lhwnd, 0, 0, lo.GetWindowWidth(lhwnd), lo.GetWindowHeight(lhwnd))
??