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:
01016399
Views:
8
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform