Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dual Monitor Support
Message
 
À
18/05/2005 07:40:58
Graham Trott
Hamilton Pc Repair
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01015265
Message ID:
01016399
Vues:
9
Is there a way to maximize a second form on the secondary monitor or to place a form on the secondary monitor while a form is running on the primary monitor.

Graham,

You can call the GetSystemMetrics Windows API function to determine how many monitors your system currently has attached and are defined. I use dual display setup and I can switch between dual display with an Extended Desktop or with both monitors displaying the same screen. GetSystemMetrics(80) returns a value of 2 when I have the displays set to "Extend My Windows Desktop onto this Monitor" when setting up my second display. When "Extend My Windows Desktop onto this Monitor" is not checked, the return value is 1.
DECLARE INTEGER GetSystemMetrics IN WIN32API INTEGER nIndex
? GetSystemMetrics(80)  && Monitor Count
When I set Monitor 2 to the left in the Display Properties Settings tab, then the LEFT Property of the Form must be a Negative value. When Monitor 2 is on the right then the Form's LEFT Property must be set to a value greater than SYSMETRIC(1) your Screen Width.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform