Jump to content
  • Advertisement
Sign in to follow this  
Mastaba

Win32 multimonitor question

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

Ok, I have no problem using EnumDisplayDevices to first find the primary display device, and then using that info to find a monitor that is part of the desktop. Now, what I want to do is determine what the virtual screen coordinates of that particular monitor are. I figured I could simply use CreateDC with the monitor name and pass that DC to EnumDisplayMonitors but that doesn't work at all, the callback never gets called. I'm possibly simply making things more complicated than they need be. My goal is to simply locate a position on some monitor, such that my window is centered on that monitor, and for that I need the resolution of that monitor and the virtual screen position of that monitor. I don't care which monitor is used, as long as its part of the desktop.

Share this post


Link to post
Share on other sites
Advertisement
This is a good sample for working with multi monitor coordinates. http://msdn2.microsoft.com/en-us/library/ms534817.aspx

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!