Solved

handling multiple monitors

Posted on 2006-11-08
1
133 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

759 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now