Click here to Skip to main content
11,641,081 members (63,273 online)
Click here to Skip to main content

Programmatically Changing Windows Display Settings

, 1 Feb 2006 CPOL 22.1K 417 18
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.
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)

Share

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 --
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150731.1 | Last Updated 1 Feb 2006
Article Copyright 2006 by Ludvik Jerabek
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid