Post Reply

Forums -> Multiple monitors -> win32 api & multimon
Scott   2001-11-25 17:20
When I enumerate my monitors, I get all my information just fine, but how can I tell which order the monitors are arranged in? The monitors come back in the correct order from EnumWindowProc, and there doesn't seem to be an appropriate API for this. A little more refined and technical is this:

Via MonitorFromWindow I can tell which monitor my application is on. How can I tell, programatically, which monitor is to the left of the monitor that my application is on?

-Scott
Christian Studer   2001-12-05 11:06
You have to do this yourself, there is no API function for this. Just enumerate all monitors, store the positions and use some algorithm to sort them based on position on the desktop.

Christian Studer - www.realtimesoft.com
Forums -> Multiple monitors -> win32 api & multimon

Post Reply