• Advertisement
Sign in to follow this  

Screen resolutions

This topic is 3559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to get all supported screen resolutions on win32?

Share this post


Link to post
Share on other sites
Advertisement
http://msdn.microsoft.com/en-us/library/ms533265(VS.85).aspx


DEVMODE devMode = { 0 };

while (EnumDisplaySettings(NULL, i, &devMode))
{
// Read out the information
nBpp = devMode.dmBitsPerPel;
nWidth = devMode.dmPelsWidth;
nHeight = devMode.dmPelsHeight;

// Create a list of resolutions here

i++;
}

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement