?
Solved

handling multiple monitors

Posted on 2006-11-08
1
Medium Priority
?
139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 2000 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

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

743 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