retrieve multiple display information using win32/C++ [duplicate]
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.
EnumDisplayMonitors should get you started.
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.
精彩评论