Hmm bit of problem. If the application is still running but not focused then the GetWindowOrigin returns 0,0 !
There must be a way to retain a handle to the main app window when it's first created and then use that to get the origin even when the app is not focused? (at least that's how I do it on the PC)
Perhaps by fixing macGetActiveWindow so that it returns a valid handle (which I capture as soon as the graphics window is created), and then passing that to a modified version of macGetWindowOrigin ?
Any ideas? thanks in advance.
There must be a way to retain a handle to the main app window when it's first created and then use that to get the origin even when the app is not focused? (at least that's how I do it on the PC)
Perhaps by fixing macGetActiveWindow so that it returns a valid handle (which I capture as soon as the graphics window is created), and then passing that to a modified version of macGetWindowOrigin ?
Any ideas? thanks in advance.