Retrieve multiple display data using win32 / C ++

Is there a way to get information about how many additional displays are in addition to the main one, how are they numbered, what are the sizes, etc.? I know this is pretty easy on .net earth.

+4
source share
2 answers

EnumDisplayMonitors should get started.

+6
source

Use the EnumDisplayMonitors () function, passing NULL for the first two arguments. Your callback receives the monitors in numerical order with their virtual arrangement, relative to the main monitor. Negative positions are on the left and top of your main monitor.

+5
source

Source: https://habr.com/ru/post/1306582/


All Articles