I'm restoring an app on launch to it's previous state and all is well except if the application is maximized on a secondary display where upon restoring it maximizes on the default display, how do I determine what screen the app is on to restore properly?
Announcement
Collapse
No announcement yet.
Multiple monitors
Collapse
X
-
Originally posted by Shrek View PostI'm restoring an app on launch to it's previous state and all is well except if the application is maximized on a secondary display where upon restoring it maximizes on the default display, how do I determine what screen the app is on to restore properly?
-
take a look at these two functions ,and let the OS do it for you
GetWindowPlacement
SetWindowPlacement
Comment
Comment