Solved

handling multiple monitors

Posted on 2006-11-08
1
136 Views
Last Modified: 2013-11-20
Hi,

I have an MDI app, and a user may have two or more monitors over which my app gets stretched. If I have say 5 document views open for example, one of the views will get stretched across the physical gap between monitors, which looks dumb.

Does anyone have some ideas on how to avoid this? It is a bit tricky since the user may have N monitors, so each window has to check if it is crossing a monitor gap then reposition everything it is etc.

Thanks
0
Comment
Question by:DJ_AM_Juicebox
1 Comment
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 17905192
For each view check each corner of the surrounding frame and see if they all lie on the same monitor.  If not then modify the views size/position so all corners fit onto one monitor.

Look at GetMonitorInfo and MonitorFromPoint in help.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seveā€¦
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question