Jump to content
  • Advertisement
Sign in to follow this  
d000hg

Creating a window on a chosen monitor

This topic is 5026 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
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!