I am working on C++ application to manage wallpapers accross multiple monitors on Windows, like what UltraMon and DisplayFusion do but with more options.
Everthing is working well but monitors placement.
My desktop has three monitors arranged like that (ignore N°4)
But when I look at the wallpaper file generated by UltraMon, the thrid monitor (the small one) does not have the same position :
By using EnumDisplayMonitors and GetMonitorInfo functions I get these data :
0: 1920x1080 at 1920x0
1: 1920x1080 at 0x0 primary
2: 800x480 at -800x-480
Which corresponds to my arrangement, but differs from the wallpaper file.
How to know where is placed the image in the global wallpaper file to have it displayed on the right monitor ? I guess the author of UltraMon found the right way 'cause it works perfectly.
(I asked this question on UltraMon forum too).