tags:

views:

84

answers:

2

Is there any way to retrieve information about how many extra displays there are besides the main one, how they are numbered, what the dimensions are, etc? I know this is pretty easy in .net land.

+1  A: 

EnumDisplayMonitors should get you started.

Billy ONeal
+1  A: 

Use the EnumDisplayMonitors() function, passing NULL for the first 2 arguments. Your callback gets the monitors in numeric order with their virtual location, relative from the main monitor. Negative positions are to the left and top of your main monitor.

Hans Passant