windows_programming_notes.nbk: Home | Index | Next Page: GetTextAlign | Previous Page: GetSubMenu


 GetSystemMetrics

Retrieves the specified system metric or system configuration setting.

Note that all dimensions retrieved by GetSystemMetrics are in pixels.

Syntax

    int WINAPI GetSystemMetrics(
      __in  int nIndex
    );

Parameters

0 Normal boot 1 Fail-safe boot 2 Fail-safe with network boot A fail-safe boot (also called SafeBoot, Safe Mode, or Clean Boot) bypasses the user startup files.

Return Value

Remarks

System metrics can vary from display to display.

GetSystemMetrics(SM_CMONITORS) counts only visible display monitors. This is different from [EnumDisplayMonitors], which enumerates both visible display monitors and invisible pseudo-monitors that are associated with mirroring drivers. An invisible pseudo-monitor is associated with a pseudo-device used to mirror application drawing for remoting or other purposes.

The SM_ARRANGE setting specifies how the system arranges minimized windows, and consists of a starting position and a direction. The starting position can be one of the following values.

Value Meaning

The direction in which to arrange minimized windows can be one of the following values.

Value Meaning

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: GetTextAlign | Previous Page: GetSubMenu


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time