Re: How do you access second display adapter without being a desktop extension?



Its not a loss of focus that causes this, its a loss of the device.
That only happens when you put one of the devices in exclusive mode --
the other device is then lost.

I use DirectX 8, and happily run fullscreen exclusive
devices on both adapters, and, besides a single
restore on each at the start before loading anything,
never have either lose its resources.

You can do this as long as both have their own HWND*. One
or other of the windows needs the focus, but the one without
does not lose its resources, and you can happily upload
stuff to it, render with it, etc. with no problem. You
basically end up with two instances of the game that just
happen to be controlled by the same app. ;)

*(you can actually use the same HWND for both, but the
devices on which restore has not been called last will
not catch mouse presses, and will cause the focus to be
lost when you try, as when you attach a device to a window,
the window appears to resize to match the display)

Cheers,

- SamB


.



Relevant Pages

  • Re: How do you access second display adapter without being a desktop extension?
    ... That only happens when you put one of the devices in exclusive mode -- ... the other device is then lost. ... "adapter group" in D3D9 for multihead cards. ... but use a window that is the size of the screen and has no window ...
    (microsoft.public.win32.programmer.directx.graphics)
  • How to detect exclusive mode?
    ... Is there a way for me to find out if a window is in exclusive mode? ... I have an HWND to a render window and would like to know if it's either ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: How to detect exclusive mode?
    ... > Is there a way for me to find out if a window is in exclusive mode? ... > I have an HWND to a render window and would like to know if it's either ... Prev by Date: ...
    (microsoft.public.win32.programmer.directx.graphics)
  • RE: Full-screen, exclusive-mode video and D3D debugging
    ... Are you sure that you need to run in exclusive mode? ... Read more about the GothPlayer project on the blog pages. ... Apparently someone hooks my app window and does ... visible it shows on the monitor anyway. ...
    (microsoft.public.win32.programmer.directx.graphics)
  • Re: is EVENT_BUFFER_SIZEs default too small? [LONG]
    ... > more events than Tk can handle, the oldest events are lost. ... > press and also a window raise event. ... > set mainframe ... > pack $b -side top ...
    (comp.lang.tcl)