RE: Reserving a Monitor for a Specific Application

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: igalla (igalla_at_discussions.microsoft.com)
Date: 01/03/05


Date: Mon, 3 Jan 2005 10:25:10 -0800

I'm still learning this but...

I know that DirectX allows you to specify the Direct3D device. Each monitor
on a dual head card (which you will need to support more than one monitor)
has its own device assosciated with it I believe. So you can control each one
individually I assume.

With that said you could in theory have one monitor draw a black background
until such time as your program needs to show other content on that monitor.

Try looking up "dual head" in the DirectX help files. It might have some
info that will help. Also look at D3DCaps and the DirectX Caps Viewer to see
if your system supports what you are trying to do here.

Anothjer idea is that if DX won't support two seperate display devices at
the same time you coudl spane the display and simply map that part of your
window (the second monitor area) yto be taken up constantly by a black bitmap
or polygonal plane, until such time as you need to show your content there.
Assuming again that Direct X Caps Viewer shows this will be supported (look
at screen resolution modes it supports with enough collor depth support to
satisfy your app and with the required refresh rates in Hz).

Hope that helps - sorry I'm no expert yet.

"Will" wrote:

> Windows 2000 supports multiple monitors. If you want to
> "extend" the desktop to one of the additional monitors you can,
> otherwise by default they appear to clone each other. Is there a
> way that an application can reserve ownership of a specific
> monitor?
>
> We are trying to build a simulator of a particular instrument,
> and we want to add a small 800x600 LCD to a Windows system, but
> never use that display for anything other than moving a
> particular application window into that display.
>
> Is there a way to achieve this without forcing the small special
> purpose LCD to become part of the extended Windows desktop?
>
> --
> Will
> Internet: westes at earthbroadcast.com
>
>
>



Relevant Pages

  • Re: Extended Desktop
    ... I have created an DirectX ... xecuting the application on the secondary display. ... You have to handle the window move events and notice when the window ... has been moved to another monitor and recreate the device on the new ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: capturing the primary display
    ... How can i access memory area of the display? ... window on the same machine. ... and you want the contents of one monitor displayed on another monitor, ... late and owns the worm farm. ...
    (comp.os.linux.x)
  • Re: Minimum time to show a label then hide it
    ... You can certainly write code to display something on the screen for less than 100 milliseconds. ... However, when you think about it, you cannot possibly display anything on the screen for a time that is shorter than the current monitor refresh period. ... you have to consider the rate at which individual pixels on the monitor "decay to a low light level" after they have been "turned off" by the beam failing to energise them at the next scan. ... It is possible to display stuff on the screen for such periods in VB though with reasonable success, but to "tie them down tight" to the video frame rate you would be better off using DirectX. ...
    (microsoft.public.vb.general.discussion)
  • Re: How do you access second display adapter without being a desktop extension?
    ... Otherwise, DirectX can't see it. ... When I don't extend the desktop to the 2nd monitor on my ... Say you'd like to use the second display only for a special D3D-App. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: Selecting display in dual monitor system
    ... During the show, one monitor will display the score, the other will display information pertinent to the current game. ... 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. ...
    (microsoft.public.vc.mfc)