0

Say I have two monitors:

Left = 1280 x 768
Right = 1920 x 1200

I open a program on Right which in the control panel is set to my primary display. When I hit the "maximize" button, it expands to fill the 1920 x 1200 as expected. Now say I de-maximize it and drag it to Left and repeat. Well now it is only expanded to 1280 x 768 and all the internal elements scaled correctly as well; I presume the internals are on a relative metric of some type.

But how does an application know which display it is currently on?

8
  • What do you mean by "open display"? Did you mean to use the word "only" in the last sentence? What are you trying to accomplish with this information? Is there a related problem you're trying to solve? Jan 31 '18 at 20:01
  • "open" meaning the display (monitor) the application's frame/window is on. So if you had 2 monitors, program originally opened on the right and you moved it to the left monitor, how does it know to maximize to THAT monitors resolution (which could potentially be different than the one on the right)?
    – pstatix
    Jan 31 '18 at 20:14
  • So are you trying to solve a problem, or just looking for knowledge? Is this a programming question? Jan 31 '18 at 20:15
  • @music2myear Knowledge, and maybe one day (not currently working that problem) apply it to a programming problem.
    – pstatix
    Jan 31 '18 at 20:16
  • Windows provides the necessary information to the applications, in general. Most programs don't care about specific pixel counts and instead use pre-defined elements in whatever framework they were written in that handle the window and element sizing. Jan 31 '18 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.