Hello there, ladies and gentlemen,
I have a legacy program to support, and what I am trying to do in particular is to make sure the Maximize button works as expected. In my situation "as expected" means blowing a program window up to the screen limits. It works OK when I have a single monitor (I call ScreenOfDisplay() and then use the width and height members of the returned structure as size limits). However when I have multi-terminal system I would like it to work the same way, i.e. occupying the screen of the monitor the program window is displayed. But in that case the returned structure refers to the total (logical) display and returns the combined width/height. Therefore the question: how to find out the physical screen's size rather than logical one's?
And to add to the question... let say I drag the window from one physical screen (one monitor) to another, In that case I would like the program to be consistent and when maximized, occupy the "new" monitor's screen. That said, how to achieve that?
Thank you everyone for your help!
Mike