Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dual Monitor Support
Message
 
To
18/05/2005 07:40:58
Graham Trott
Hamilton Pc Repair
Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01015265
Message ID:
01016402
Views:
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,

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
Previous
Reply
Map
View

Click here to load this message in the networking platform