Sign in to follow this  

Choosing which monitor a window is created on

This topic is 4710 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
I don't really know how DX iteracts with regular windows, however you can enumerate the monitors in the system with with EnumDisplayMonitors. The will call a callback once for each monitor passing a handle. You pass that handle to GetMonitorInfo to find stuff like what screen rect the monitor covers. You can then use that info to position your window.

Multiple Display Monitors Functions

Share this post


Link to post
Share on other sites
I am checking this out as well ... and I guess I can give you a few links I found...

http://www.gamedev.net/community/forums/topic.asp?topic_id=226055

http://www.gamedev.net/reference/articles/article1179.asp

http://www.thecodeproject.com/system/multiplemonitor.asp

http://graphicsbb.itgo.com/solutions/enummonitors.html

I haven't tried any of these yet, as I see there is alot to take care of, and I have to sit down and make some decisions.

Share this post


Link to post
Share on other sites

This topic is 4710 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