Add comment W32 Constants Translate this page
Retrieves various system metrics (widths and heights of display elements) and system configuration settings. |
int nIndex // system metric or configuration setting
DECLARE INTEGER GetSystemMetrics IN user32 INTEGER nIndex
[in] Specifies the system metric or configuration setting to retrieve.
|If the function succeeds, the return value is the requested system metric or configuration setting.|
|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:|
Visited in last 7 days: 104
|Created: ||2001-07-31 12:00:00|
|Modified: ||2010-01-15 16:00:29|