Re: Selecting display in dual monitor system
- From: Mike Mellen <Mike.Mellen@xxxxxxxxxxxxxx>
- Date: Fri, 16 May 2008 16:48:26 -0400
BobF wrote:
Mike Mellen wrote:I have an XP system with two monitors. I am writing an MFC application to display information during a simulated game show that a local community theatre is producing. During the show, one monitor will display the score, the other will display information pertinent to the current game.
I have each of the individual display modes (score and game) working. I'm using a CWnd derived class to display full-screen windows and paint/draw the information onto the window.
My problem is that I can only get the display to output to one monitor. How do I select or identify a particular monitor as the one to use for display? I've tried playing around with the MoveWindow parameters to move the display to the "right" on the primary monitor enough to push it onto the second monitor, but I get an error if I move it all the way onto the second monitor.
Thanks in advance for any suggestions.
I assume you're letting Windows place the app window(s) ...
It it were me, I would add code to save/restore window layout on exit/start, manually place the app windows where I want them and be done.
I suggest this rather than coding window positions as you've described because your user may later decide to use a single monitor with one app window above the other - or something that would require a code change to place the app windows elsewhere.
If this were production code, I'd definitely be doing something along those lines, but this is a (probably) one-time use application. I'll be there every night to set things up and make sure it's all configured properly. As a result, and due to time constraints, I'm doing some quick and dirty coding - just get the thing working, and not worry about having to maintain it years from now. (and even as I'm typing this, a little voice is saying "that's what you think *now* ....").
.
- Follow-Ups:
- Re: Selecting display in dual monitor system
- From: BobF
- Re: Selecting display in dual monitor system
- References:
- Selecting display in dual monitor system
- From: Mike Mellen
- Re: Selecting display in dual monitor system
- From: BobF
- Selecting display in dual monitor system
- Prev by Date: SetPixel and Color
- Next by Date: Re: Clean-up in OnDestroy
- Previous by thread: Re: Selecting display in dual monitor system
- Next by thread: Re: Selecting display in dual monitor system
- Index(es):
Relevant Pages
|