Enum SystemMetric
Flags used with the Windows API (User32.dll):GetSystemMetrics(SystemMetric smIndex) This Enum and declaration signature was written by Gabriel T. Sharp [email protected] or [email protected] Obtained on pinvoke.net, please contribute your code to support the wiki!
Namespace: Dapplo.Windows.User32.Enums
Assembly: Dapplo.Windows.User32.dll
Syntax
public enum SystemMetric : int
Fields
Name | Description |
---|---|
SM_ARRANGE | Flags specifying how the system arranged minimized windows |
SM_CLEANBOOT | Value that specifies how the system was started: 0-normal, 1-failsafe, 2-failsafe /w net |
SM_CMETRICS_2000 | Metrics Windows 2000 |
SM_CMETRICS_NT | Metrics Windows NT |
SM_CMETRICS_OTHER | Metrics Other |
SM_CMONITORS | Number of display monitors on the desktop |
SM_CMOUSEBUTTONS | Number of buttons on mouse, or zero if no mouse is installed. |
SM_CXBORDER | Width of a window border, in pixels. This is equivalent to the SM_CXEDGE value for windows with the 3-D look. |
SM_CXCURSOR | Width of a cursor, in pixels. The system cannot create cursors of other sizes. |
SM_CXDLGFRAME | Thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border. |
SM_CXDOUBLECLK | Width of the rectangle around the location of a first click in a double-click sequence, in pixels. The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click |
SM_CXDRAG | Width of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins, in pixels. |
SM_CXEDGE | Width of a 3-D border, in pixels. This is the 3-D counterpart of SM_CXBORDER |
SM_CXFIXEDFRAME | Identical Values Changed After Windows NT 4.0 |
SM_CXFOCUSBORDER | Windows XP (v5.1+) Width of the left and right edges of the focus rectangle drawn by DrawFocusRect. This value is in pixels. |
SM_CXFRAME | Thickness of the sizing border around the perimeter of a window that can be resized, in pixels. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border. |
SM_CXFULLSCREEN | Width of the client area for a full-screen window on the primary display monitor, in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value. |
SM_CXHSCROLL | Width of the arrow bitmap on a horizontal scroll bar, in pixels. |
SM_CXHTHUMB | Width of the thumb box in a horizontal scroll bar, in pixels. |
SM_CXICON | Default width of an icon, in pixels. The LoadIcon function can load only icons with the dimensions specified by SM_CXICON and SM_CYICON |
SM_CXICONSPACING | Width of a grid cell for items in large icon view, in pixels. Each item fits into a rectangle of size SM_CXICONSPACING by SM_CYICONSPACING when arranged. This value is always greater than or equal to SM_CXICON |
SM_CXMAXIMIZED | Default width, in pixels, of a maximized top-level window on the primary display monitor. |
SM_CXMAXTRACK | Default maximum width of a window that has a caption and sizing borders, in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. |
SM_CXMENUCHECK | Width of the default menu check-mark bitmap, in pixels. |
SM_CXMENUSIZE | Width of menu bar buttons, such as the child window close button used in the multiple document interface, in pixels. |
SM_CXMIN | Minimum width of a window, in pixels. |
SM_CXMINIMIZED | Width of a minimized window, in pixels. |
SM_CXMINSPACING | Width of a grid cell for a minimized window, in pixels. Each minimized window fits into a rectangle this size when arranged. This value is always greater than or equal to SM_CXMINIMIZED. |
SM_CXMINTRACK | Minimum tracking width of a window, in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. |
SM_CXPADDEDBORDER | The amount of border padding for captioned windows, in pixels. Windows XP/2000: This value is not supported. |
SM_CXSCREEN | Width of the screen of the primary display monitor, in pixels. This is the same values obtained by calling GetDeviceCaps as follows: GetDeviceCaps( hdcPrimaryMonitor, HORZRES). |
SM_CXSIZE | Width of a button in a window's caption or title bar, in pixels. |
SM_CXSIZEFRAME | Identical Values Changed After Windows NT 4.0 |
SM_CXSMICON | Recommended width of a small icon, in pixels. Small icons typically appear in window captions and in small icon view |
SM_CXSMSIZE | Width of small caption buttons, in pixels. |
SM_CXVIRTUALSCREEN | Windows 2000 (v5.0+) Width of the virtual screen |
SM_CXVSCROLL | Height of a horizontal scroll bar, in pixels. |
SM_CYBORDER | Height of a window border, in pixels. This is equivalent to the SM_CYEDGE value for windows with the 3-D look. |
SM_CYCAPTION | Height of a caption area, in pixels. |
SM_CYCURSOR | Height of a cursor, in pixels. The system cannot create cursors of other sizes. |
SM_CYDLGFRAME | Thickness of the frame around the perimeter of a window that has a caption but is not sizable, in pixels. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border. |
SM_CYDOUBLECLK | Height of the rectangle around the location of a first click in a double-click sequence, in pixels. The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click. (The two clicks must also occur within a specified time.) |
SM_CYDRAG | Height of a rectangle centered on a drag point to allow for limited movement of the mouse pointer before a drag operation begins. This value is in pixels. It allows the user to click and release the mouse button easily without unintentionally starting a drag operation. |
SM_CYEDGE | Height of a 3-D border, in pixels. This is the 3-D counterpart of SM_CYBORDER |
SM_CYFIXEDFRAME | Identical Values Changed After Windows NT 4.0 |
SM_CYFOCUSBORDER | Windows XP (v5.1+) Height of the top and bottom edges of the focus rectangle drawn by DrawFocusRect. This value is in pixels. |
SM_CYFRAME | Thickness of the sizing border around the perimeter of a window that can be resized, in pixels. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border. |
SM_CYFULLSCREEN | Height of the client area for a full-screen window on the primary display monitor, in pixels. To get the coordinates of the portion of the screen not obscured by the system taskbar or by application desktop toolbars, call the SystemParametersInfo function with the SPI_GETWORKAREA value. |
SM_CYHSCROLL | Height of the arrow bitmap on a vertical scroll bar, in pixels. |
SM_CYICON | Default height of an icon, in pixels. The LoadIcon function can load only icons with the dimensions SM_CXICON and SM_CYICON. |
SM_CYICONSPACING | Height of a grid cell for items in large icon view, in pixels. Each item fits into a rectangle of size SM_CXICONSPACING by SM_CYICONSPACING when arranged. This value is always greater than or equal to SM_CYICON. |
SM_CYKANJIWINDOW | For double byte character set versions of the system, this is the height of the Kanji window at the bottom of the screen, in pixels |
SM_CYMAXIMIZED | Default height, in pixels, of a maximized top-level window on the primary display monitor. |
SM_CYMAXTRACK | Default maximum height of a window that has a caption and sizing borders, in pixels. This metric refers to the entire desktop. The user cannot drag the window frame to a size larger than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message. |
SM_CYMENU | Height of a single-line menu bar, in pixels. |
SM_CYMENUCHECK | Height of the default menu check-mark bitmap, in pixels. |
SM_CYMENUSIZE | Height of menu bar buttons, such as the child window close button used in the multiple document interface, in pixels. |
SM_CYMIN | Minimum height of a window, in pixels. |
SM_CYMINIMIZED | Height of a minimized window, in pixels. |
SM_CYMINSPACING | Height of a grid cell for a minimized window, in pixels. Each minimized window fits into a rectangle this size when arranged. This value is always greater than or equal to SM_CYMINIMIZED. |
SM_CYMINTRACK | Minimum tracking height of a window, in pixels. The user cannot drag the window frame to a size smaller than these dimensions. A window can override this value by processing the WM_GETMINMAXINFO message |
SM_CYSCREEN | Height of the screen of the primary display monitor, in pixels. This is the same values obtained by calling GetDeviceCaps as follows: GetDeviceCaps( hdcPrimaryMonitor, VERTRES). |
SM_CYSIZE | Height of a button in a window's caption or title bar, in pixels. |
SM_CYSIZEFRAME | Identical Values Changed After Windows NT 4.0 |
SM_CYSMCAPTION | Height of a small caption, in pixels |
SM_CYSMICON | Recommended height of a small icon, in pixels. Small icons typically appear in window captions and in small icon view. |
SM_CYSMSIZE | Height of small caption buttons, in pixels. |
SM_CYVIRTUALSCREEN | Windows 2000 (v5.0+) Height of the virtual screen |
SM_CYVSCROLL | Width of a horizontal scroll bar, in pixels. |
SM_CYVTHUMB | Height of the thumb box in a vertical scroll bar, in pixels |
SM_DBCSENABLED | Nonzero if User32.dll supports DBCS; zero otherwise. (WinMe/95/98): Unicode |
SM_DEBUG | Nonzero if the debug version of User.exe is installed; zero otherwise. |
SM_DIGITIZER | Nonzero if the current operating system is Windows 7 or Windows Server 2008 R2 and the Tablet PC Input service is started; otherwise, 0. The return value is a bitmask that specifies the type of digitizer input supported by the device. For more information, see Remarks. Windows Server 2008, Windows Vista and Windows XP/2000: This value is not supported. |
SM_IMMENABLED | Windows XP (v5.1+) Nonzero if Input Method Manager/Input Method Editor features are enabled; zero otherwise |
SM_MAXIMUMTOUCHES | Nonzero if there are digitizers in the system; otherwise, 0. SM_MAXIMUMTOUCHES returns the aggregate maximum of the maximum number of contacts supported by every digitizer in the system. If the system has only single-touch digitizers, the return value is 1. If the system has multi-touch digitizers, the return value is the number of simultaneous contacts the hardware can provide. Windows Server 2008, Windows Vista and Windows XP/2000: This value is not supported. |
SM_MEDIACENTER | Nonzero if the current operating system is the Windows XP, Media Center Edition, zero if not. |
SM_MENUDROPALIGNMENT | Nonzero if drop-down menus are right-aligned with the corresponding menu-bar item; zero if the menus are left-aligned. |
SM_MIDEASTENABLED | Nonzero if the system is enabled for Hebrew and Arabic languages, zero if not. |
SM_MOUSEHORIZONTALWHEELPRESENT | Nonzero if a mouse with a horizontal scroll wheel is installed; otherwise 0. |
SM_MOUSEPRESENT | Nonzero if a mouse is installed; zero otherwise. This value is rarely zero, because of support for virtual mice and because some systems detect the presence of the port instead of the presence of a mouse. |
SM_MOUSEWHEELPRESENT | Nonzero if a mouse with a wheel is installed; zero otherwise |
SM_NETWORK | Least significant bit is set if a network is present; otherwise, it is cleared. The other bits are reserved for future use |
SM_PENWINDOWS | Nonzero if the Microsoft Windows for Pen computing extensions are installed; zero otherwise. |
SM_REMOTECONTROL | Windows XP (v5.1+) This system metric is used in a Terminal Services environment. Its value is nonzero if the current session is remotely controlled; zero otherwise |
SM_REMOTESESSION | Windows XP (v5.1+) This 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. If the calling process is associated with the Terminal Server console session, the return value is zero. The console session is not necessarily the physical console - see WTSGetActiveConsoleSessionId for more information. |
SM_RESERVED1 | Reserved for future use |
SM_RESERVED2 | Reserved for future use |
SM_RESERVED3 | Reserved for future use |
SM_RESERVED4 | Reserved for future use |
SM_SAMEDISPLAYFORMAT | Windows XP (v5.1+) Nonzero if all the display monitors have the same color format, zero otherwise. Note that two displays can have the same bit depth, but different color formats. For example, the red, green, and blue pixels can be encoded with different numbers of bits, or those bits can be located in different places in a pixel's color value. |
SM_SECURE | Nonzero if security is present; zero otherwise. |
SM_SERVERR2 | The build number if the system is Windows Server 2003 R2; otherwise, 0 |
SM_SHOWSOUNDS | Nonzero if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form; zero otherwise. |
SM_SHUTTINGDOWN | Windows XP (v5.1+) Nonzero if the current session is shutting down; zero otherwise |
SM_SLOWMACHINE | Nonzero if the computer has a low-end (slow) processor; zero otherwise |
SM_SWAPBUTTON | Nonzero if the left and right mouse buttons are reversed; zero otherwise. |
SM_TABLETPC | Nonzero if the current operating system is the Windows XP Tablet PC edition, zero if not. |
SM_XVIRTUALSCREEN | Windows 2000 (v5.0+) Coordinate of the top of the virtual screen |
SM_YVIRTUALSCREEN | Windows 2000 (v5.0+) Coordinate of the left of the virtual screen |