Sign in to follow this  

Creating a window on a chosen monitor

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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...

Share this post


Link to post
Share on other sites
(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.

Share this post


Link to post
Share on other sites

This topic is 4713 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this