Question

I was wondering if someone could help me change the screen resolution of the secondary monitor using C++ on Windows 7. I understand this is not much information so if you need more just comment and I'll provide it.

Thanks in advance,

Était-ce utile?

La solution

You can do this by setting the correct resolution in a DEVMODE structure, then calling ChangeDisplaySettingsEx to actually make the change.

You may want to use EnumDisplaySettingsEx to find a resolution supported by the display and graphics card in question.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top