Using Win32 functions in Visual FoxPro Image Gallery
System Information
..msdn
ExpandEnvironmentStrings
GetComputerName
GetComputerNameEx
GetComputerObjectName
GetCurrentHwProfile
GetKeyboardType
GetNativeSystemInfo
GetProductInfo
GetSysColor
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemRegistryQuota
GetSystemWow64Directory
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetWindowsDirectory
IsNetworkAlive
SetComputerName
SetSysColors
SystemParametersInfo
Code examples:
An alternative way of setting Form.Closable to False
Clipping mouse cursor area
Creating irregularly shaped FoxPro form using transparency color key
GDI+: how to make VFP controls visually shake and shudder
How to draw custom Window Caption on FoxPro form
How to make a VFP form fading out when released (GDI version)
How to make a VFP form fading out when released (GDI+ version)
Placing On-screen Alert on top of all windows
Retrieving various system metrics
Round FoxPro form
Splash Screen for the VFP application
Tracking mouse movement to detect when to start dragging
GetSystemMetrics
    Add comment     W32 Constants      Translate this page
Retrieves various system metrics (widths and heights of display elements) and system configuration settings.
Code examples:
Splash Screen for the VFP application
How to make a VFP form fading out when released (GDI version)
Placing On-screen Alert on top of all windows
Creating irregularly shaped FoxPro form using transparency color key
Round FoxPro form
How to make a VFP form fading out when released (GDI+ version)
How to draw custom Window Caption on FoxPro form
Tracking mouse movement to detect when to start dragging
An alternative way of setting Form.Closable to False
Clipping mouse cursor area
Declaration:
int GetSystemMetrics(
  int nIndex   // system metric or configuration setting
);
FoxPro declaration:
DECLARE INTEGER GetSystemMetrics IN user32 INTEGER nIndex
Parameters:
nIndex
[in] Specifies the system metric or configuration setting to retrieve.
Return value:
If the function succeeds, the return value is the requested system metric or configuration setting.
My comment:
All dimensions retrieved by GetSystemMetrics are in pixels.

The SM_REMOTESESSION system metric is used in a Terminal Services environment. If the calling process is associated with a Terminal Services client session, the return value is nonzero.

The SM_REMOTECONTROL is used in a Terminal Services environment. Its value is nonzero if the current session is remotely controlled; otherwise, 0.

Read post Detecting Workstation state changes in Calvin Hsia`s weblog.

* * *
System Metrics Foundation Class included in VFP8 and 9 installations provides access to system metric information as mousewheel present, number of mouse buttons, and number of monitors are provided with the class, but any valid system metric can be queried.

See also: SystemParametersInfo, SYSMETRIC( )

* * *
Allegedly, both GetSystemMetrics(SM_CXSIZE) and GetTitleBarInfo return wrong values for Vista Aero. For the latter, sending the WM_GETTITLEBARINFOEX suggested to be a replacement.

Vista Aero Issues on FoxPro Wiki.
Word Index links for the GetSystemMetrics :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-31 12:00:00
Modified: 2010-01-15 16:00:29
Visited in last 7 days: 160
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.91.38.173)
17 sec.Function: 'ImageList_Remove'
Google
Advertise here!