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:
01016402
Vues:
10
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,

To add the Monitor Count Detection you can also check to see what the Virtual Desktop Width is as well as what the Virtual Desktop Left position is which allows you to detect if the 2nd Monitor is to the Left or to the Right of the Main Monitor. However, the information in the MSDN Link below is Incorrect as far as the GetSystemMetrics() nIndex Parameter for the Virtual Desktop Width. It should be 78 and not 76.
DECLARE INTEGER GetSystemMetrics IN WIN32API integer nIndex
? GetSystemMetrics(80) && Monitor Count
? GetSystemMetrics(76) && Virtual Desktop Left Position (Negative Values = 2nd Monitor is to the Left)
? GetSystemMetrics(78) && Virtual Desktop Width
? GetSystemMetrics(77) && Virtual Desktop Top Position (Negative Values = 2nd Monitor is Above)
? GetSystemMetrics(79) && Virtual Desktop Height
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getsystemmetrics.asp
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform