Sign in to follow this  
Mastaba

Win32 multimonitor question

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

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