Jump to content
  • Advertisement
Sign in to follow this  
d000hg

Choosing which monitor a window is created on

This topic is 5074 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
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!