Window coordinates for multiple desktops
Posted: Fri Apr 30, 2010 7:57 am
Hi,
If you have a secondary monitor to the left of your main screen, your window coordinates become negative.
If you were then to disconnect this monitor (leave office and hit the road), and your app restores to those coordinates your window is hidden.
Can anybody point me at windows api functions to tell what screen my window is on, and if the coordinates are valid for the currently connected monitor(s)? GetSysMetrics for screen size only return the main window
If you have a secondary monitor to the left of your main screen, your window coordinates become negative.
If you were then to disconnect this monitor (leave office and hit the road), and your app restores to those coordinates your window is hidden.
Can anybody point me at windows api functions to tell what screen my window is on, and if the coordinates are valid for the currently connected monitor(s)? GetSysMetrics for screen size only return the main window