Win32 multimonitor question

Started by
0 comments, last by c_j 16 years, 10 months ago
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.
.
Advertisement
This is a good sample for working with multi monitor coordinates. http://msdn2.microsoft.com/en-us/library/ms534817.aspx

This topic is closed to new replies.

Advertisement