Click here to Skip to main content
12,895,774 members (49,970 online)
Click here to Skip to main content
Add your own
alternative version


18 bookmarked
Posted 1 Feb 2006

Programmatically Changing Windows Display Settings

, 1 Feb 2006 CPOL
Rate this:
Please Sign up or sign in to vote.
C++ class that makes it easy to list all available display settings, and change them.


This article is about changing Windows Display Settings in C++. I created a CVidAdapter class that allows you to change display settings without having to know much about the underlying APIs. This class comes in handy when you are working on a project that requires you to set system resolution or font size as part of a build process. You can also use it in scripts once you have compiled an executable. The class will give you all the physical adapters on the system and name of the adapters as well as the virtual. You can filter for the types you want to query. For the most part, the functions are explained by the comments in the *.h file.

The class also has functions for changing the system font size which is not published by Microsoft! One method is by the API, and the other changes the registry directly.


Futher API information in regard to setting system resolution and fonts can be found here.


  • 1st February, 2006: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ludvik Jerabek
Software Developer
United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170424.1 | Last Updated 1 Feb 2006
Article Copyright 2006 by Ludvik Jerabek
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid