Re: Selecting display in dual monitor system

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Mike Mellen wrote:
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* ....").

I've heard that little voice many times :-)

Good luck with it!

.



Relevant Pages

  • Re: 256 colors!!!!!
    ... switch your monitor to 256 colors automatically when you start the program. ... display temporarily while the game or program is running. ... On your desktop or on the Start menu, right-click the game or other program ... On the Settings tab, in the Color quality list, click a different color ...
    (microsoft.public.windowsxp.newusers)
  • Re: Pittsburgh Tempest Repair Help Needed!
    ... > the fuses and checked the voltages without anything connected. ... > I can also play the game and I have sound but again, the display is ... The four fuses on the monitor are fine. ...
    (rec.games.video.arcade.collecting)
  • Re: Pittsburgh Tempest Repair Help Needed!
    ... >> the fuses and checked the voltages without anything connected. ... When you start up the game, the display shows ... The four fuses on the monitor are fine. ...
    (rec.games.video.arcade.collecting)
  • Pittsburgh Tempest Repair Help Needed!
    ... Originally I was blowing f4 and f5 fuses but that issue seems to have gone ... I can also play the game and I have sound but again, the display is ... The four fuses on the monitor are fine. ...
    (rec.games.video.arcade.collecting)
  • Re: Refresh rate on HP zx5000
    ... I suspect the monitor's refresh is the culprit. ... vertical as the window is moved across the screen. ... was if I was currently playing a 3D game (which ties up one display ... The Monitor tab shows default monitor, ...
    (microsoft.public.windowsxp.general)