METRICS property (System)
Description
Returns a specified Windows SystemMetrics value.
Property Value
A numeric value containing the requested Windows SystemMetrics data.
Index Value
This should contain the numeric ID of the SystemMetrics value to retrieve. These IDs are defined in the MSWIN_SYSTEMMETRIC_EQUATES insert record.
Property Traits
Development | Runtime | Indexed | Scaled | Synthetic |
---|---|---|---|---|
N/A | Get | Yes | No | No |
Remarks
This property uses the GetSystemMetrics Windows API function internally, so please refer to the documentation on the Microsoft website for further information.
Please be aware that values returned via this function are always scaled to the System DPI (i.e. the DPI of the primary monitor at logon).
Example
// Example - Get the height of a window caption $insert MsWin_SystemMetric_Equates CaptionHeight = Get_Property( "SYSTEM", "METRICS", SM_CYCAPTION$ ) // Example - check if we're running in Remote Desktop IsRDP = Get_Property( "SYSTEM", "METRICS", SM_REMOTESESSION$ )
See Also
N/A