Click here to Skip to main content
Licence CPOL
First Posted 1 Feb 2006
Views 16,510
Downloads 209
Bookmarked 17 times

Programmatically Changing Windows Display Settings

By | 1 Feb 2006 | Article
C++ class that makes it easy to list all available display settings, and change them.
CVidAdapter.jpg

Introduction

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.

Background

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

History

  • 1st February, 2006: Initial post

License

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

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 1 Feb 2006
Article Copyright 2006 by Ludvik Jerabek
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid