Главная страница | назад

Article #16544: How to change video resolution on the fly.

 Question and Answer Database

FAQ1544C.txt   How to change video resolution on the fly.
Category   :Windows API
Platform    :All
Product    :C++Builder  1.x


At a certain point in my program I'd like to be able to change
the video resolution, display some stuff, then restore the 
screen (including the previous contents). Any ideas how to do


Check out the ChangeDisplaySettings and EnumDisplaySettings
functions. These are new Win32 functions. They won't change
palette depth without rebooting but they should allow you to
change screen resolution on the fly.

Alternatively, use DirectDraw in exclusive mode. That will give
you complete control of the screen. 

In exclusive mode you can do whatever you want without having 
to share the screen with other applications.

7/2/98 10:32:32 AM

Last Modified: 01-SEP-99