Hi,
I am creating a program with 2 seperate windows, one for the monitor and one for the projector. I am using extend desktop and so am positioning the projector window using:
ProjectorWindow.setPosition(resolutionWidthOfMonitor, 0);
Which places the top left corner of the window at 0,0 of the projector as extend desktop just adds the projector's resolution onto the right side of the monitor's resolution.
I am finding the monitor resolution width using:
sf::VideoMode::getDesktopMode().Width
But is there a way to get the projector's resolution? Because I want to be able to stretch the projector's window to fit the resolution of the 2nd monitor but can't see how to get this resolution programatically. Is there a way to get the full resolution of both screens (1920x1080 + 800x600 = 2720x1080, still 1080 because only the widths are added) and then subtract sf::VideoMode::getDesktopMOde().Width or anything?
I am on windows and this program will only ever be used on windows so is there a way to find it using windows functions?
Thanks,
Poncho