Creating a window on a chosen monitor

Started by
0 comments, last by circlesoft 19 years, 3 months ago
I have a Direct3D app for multi-monitor systems. I create a window, then a D3D object for a graphics adapter is created and tied to that window. I want the user to be able to choose which adapter to use, then have a window created on the monitor for that adapter, but the window currently is created where windows chooses to put it (normally the primary monitor). I'm not sure if this is a windows or D3D question, so forgive the double post...
Advertisement
(1) Have you used all of the GetAdapter*() functions (like GetAdapterIdentifier()) to make sure are you are specifying the correct adapter to CreateDevice()?

(2) I believe specifying fullscreen in your D3DPRESENTATION_PARAMETERS structure will move the window to your adapter of choice. Taking a look at the sample framework's code may be helpful here - I know they enumerate each adapter and handle all of that stuff.

(3) If all else fails, you could just use the Windows API to manually set the position of your window at startup.
Dustin Franklin ( circlesoft :: KBase :: Mystic GD :: ApolloNL )

This topic is closed to new replies.

Advertisement