Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing Screen Resolutions
Message
 
To
06/10/2005 08:13:56
Brian O'Donovan
Crescent Computers
Cork, Ireland
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01056684
Message ID:
01056690
Views:
19
Brian,

Screen resolution can be set using API call ChangeDisplaySettings, which changes the settings of the default display device to the specified graphics mode.
DECLARE INTEGER ChangeDisplaySettings IN user32; 
    STRING @lpDevMode,; 
    INTEGER dwflags
The first input parameter points to a DEVMODE structure, which makes this function rather difficult to be called under Visual FoxPro. Still it is possible.

There's a sample code (members area) on my web site:
How to change display settings: screen resolution, screen refresh rate
http://www.news2news.com/vfp/?example=374

True, this subject brings a discussion almost every time, whether one should adjust screen resolution or not.
Previous
Reply
Map
View

Click here to load this message in the networking platform