Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I assume this is the correct category
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00484078
Message ID:
00484667
Vues:
16
>Hello All,
>a number of users of one of my applications need their monitor settings set to large fonts, 400 * 600 desktop area, etc etc, is there a way to set this on entry to the app and revert to old settings on exit?
>

Yes, there are API calls which can switch video modes, fonts and the like with code; the problem is that it will alter the settings for all other apps, incuding the Desktop, re-arranging things, invalidating any stored context details for existing windows app, and switching the mode back won't restore the state of the other apps. If an app fires a timer to run some code updating a Window, the screen state would constantly switch between video modes, an operation which requires significant time and resources to perform. See my FAQ entry on why switching video modes is a bad idea in general in an app, and running the Display Control Panel applet inside your app to handle letting the user alter their display details.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform