Solved

handling multiple monitors

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

932 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

13 Experts available now in Live!

Get 1:1 Help Now