Switching Resolutions

I'm sure there must be a simple answer to this, but I can't find it...it comes in two parts

1) How can I tell how many colours (and/or the screen resolution) the current display is set to.

2) How can I programatically change it.

A part of the program I've written displays JPEGs and it would be useful to post a warning message to say that under the current number of colours the JPEGs may appear low quality etc etc and to give the option to switch up to a mode that shows more colours...you get the idea :-)

Thanks in advance,

Who is Participating?
olgatConnect With a Mentor Commented:
Go to

to find a very elegant freeware class which does exactly this thing
Hi !!
 try this out ..
There are 2 functions GetSysColor() and SetSysColor() which will solve u r problem
1. EnumDisplaySettings with ENUM_CURRENT_SETTINGS.

2. ChangeDisplaySettings.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.