com.jniwrapper.win32.ui
Class SystemMetrics

java.lang.Object
  extended bycom.jniwrapper.win32.ui.SystemMetrics

public class SystemMetrics
extends java.lang.Object


Field Summary
static int SM_ARRANGE
          Flags specifying how the system arranges minimized windows.
static int SM_CLEANBOOT
          Value that specifies how the system was started: 0 Normal boot 1 Fail-safe boot 2 Fail-safe with network boot

Fail-safe boot (also called SafeBoot) bypasses the user's startup files.

static int SM_CMONITORS
          Windows 98, Windows 2000: Number of display monitors on the desktop.
static int SM_CMOUSEBUTTONS
          Number of buttons on mouse, or zero if no mouse is installed.
static int SM_CXBORDER
          Width and height, in pixels, of the window border.
static int SM_CXCURSOR
          Width and height, in pixels, of the cursor.
static int SM_CXDLGFRAME
          Same as SM_CXFIXEDFRAME and SM_CYFIXEDFRAME.
static int SM_CXDOUBLECLK
          Width and height, in pixels, of the rectangle around the location of a first click in a double-click sequence.
static int SM_CXDRAG
          Width and height, in pixels, of the rectangle centered on a drag point to allow limited movement of the mouse pointer before a drag operation begins.
static int SM_CXEDGE
          Dimensions, in pixels, of a 3-D border.
static int SM_CXFIXEDFRAME
          Thickness, in pixels, of the frame around the perimeter of a window that has a caption but is not sizable.
static int SM_CXFRAME
          Same as SM_CXSIZEFRAME and SM_CYSIZEFRAME.
static int SM_CXFULLSCREEN
          Width and height of the client area for a full-screen window on the primary display monitor.
static int SM_CXHSCROLL
          Width, in pixels, of the arrow bitmap on a horizontal scroll bar; and height, in pixels, of a horizontal scroll bar.
static int SM_CXHTHUMB
          Width, in pixels, of the thumb box in a horizontal scroll bar.
static int SM_CXICON
          The default width and height, in pixels, of an icon.
static int SM_CXICONSPACING
          Dimensions, in pixels, of a grid cell for items in large icon view.
static int SM_CXMAXIMIZED
          Default dimensions, in pixels, of a maximized top-level window on the primary display monitor.
static int SM_CXMAXTRACK
          Default maximum dimensions, in pixels, of a window that has a caption and sizing borders.
static int SM_CXMENUCHECK
          Dimensions, in pixels, of the default menu check-mark bitmap.
static int SM_CXMENUSIZE
          Dimensions, in pixels, of menu bar buttons, such as the child window close button used in the multiple document interface.
static int SM_CXMIN
          Minimum width and height, in pixels, of a window.
static int SM_CXMINIMIZED
          Dimensions, in pixels, of a normal minimized window.
static int SM_CXMINSPACING
          Dimensions, in pixels, of a grid cell for minimized windows.
static int SM_CXMINTRACK
          Minimum tracking width and height, in pixels, of a window.
static int SM_CXSCREEN
          Width and height, in pixels, of the screen of the primary display monitor.
static int SM_CXSIZE
          Width and height, in pixels, of a button in a window's caption or title bar.
static int SM_CXSIZEFRAME
          Thickness, in pixels, of the sizing border around the perimeter of a window that can be resized.
static int SM_CXSMICON
          Recommended dimensions, in pixels, of a small icon.
static int SM_CXSMSIZE
          Dimensions, in pixels, of small caption buttons.
static int SM_CXVIRTUALSCREEN
          Windows 98, Windows 2000: Width and height, in pixels, of the virtual screen.
static int SM_CXVSCROLL
          Width, in pixels, of a vertical scroll bar; and height, in pixels, of the arrow bitmap on a vertical scroll bar.
static int SM_CYBORDER
           
static int SM_CYCAPTION
          Height, in pixels, of a normal caption area.
static int SM_CYCURSOR
           
static int SM_CYDLGFRAME
           
static int SM_CYDOUBLECLK
           
static int SM_CYDRAG
           
static int SM_CYEDGE
           
static int SM_CYFIXEDFRAME
           
static int SM_CYFRAME
           
static int SM_CYFULLSCREEN
           
static int SM_CYHSCROLL
           
static int SM_CYICON
           
static int SM_CYICONSPACING
           
static int SM_CYKANJIWINDOW
          For double byte character set versions of the system, this is the height, in pixels, of the Kanji window at the bottom of the screen.
static int SM_CYMAXIMIZED
           
static int SM_CYMAXTRACK
           
static int SM_CYMENU
          Height, in pixels, of a single-line menu bar.
static int SM_CYMENUCHECK
           
static int SM_CYMENUSIZE
           
static int SM_CYMIN
           
static int SM_CYMINIMIZED
           
static int SM_CYMINSPACING
           
static int SM_CYMINTRACK
           
static int SM_CYSCREEN
           
static int SM_CYSIZE
           
static int SM_CYSIZEFRAME
           
static int SM_CYSMCAPTION
          Height, in pixels, of a small caption.
static int SM_CYSMICON
           
static int SM_CYSMSIZE
           
static int SM_CYVIRTUALSCREEN
           
static int SM_CYVSCROLL
           
static int SM_CYVTHUMB
          Height, in pixels, of the thumb box in a vertical scroll bar.
static int SM_DBCSENABLED
          TRUE or nonzero, if the double-byte character set (DBCS version of User.exe is installed; FALSE or zero otherwise.
static int SM_DEBUG
          TRUE or nonzero, if the debugging version of User.exe is installed; FALSE or zero otherwise.
static int SM_MENUDROPALIGNMENT
          TRUE or nonzero if drop-down menus are right-aligned with the corresponding menu bar item; FALSE or zero, if the menus are left-aligned.
static int SM_MIDEASTENABLED
          TRUE, if the system is enabled for Hebrew and Arabic languages.
static int SM_MOUSEPRESENT
          TRUE or nonzero, if a mouse is installed; FALSE or zero otherwise.
static int SM_MOUSEWHEELPRESENT
          Windows NT 4.0 and later, Windows 98: TRUE or nonzero, if a mouse with a wheel is installed; FALSE or zero otherwise.
static int SM_NETWORK
          The least significant bit is set if a network is present; otherwise, it is cleared.
static int SM_PENWINDOWS
          TRUE or nonzero, if the Microsoft Windows for Pen computing extensions are installed; FALSE or zero otherwise.
static int SM_SAMEDISPLAYFORMAT
          Windows 98, Windows 2000: TRUE, if all the display monitors have the same color format, FALSE otherwise.
static int SM_SECURE
          TRUE, if security is present; FALSE otherwise.
static int SM_SHOWSOUNDS
          TRUE or nonzero, if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form; FALSE or zero otherwise.
static int SM_SLOWMACHINE
          TRUE, if the computer has a low-end (slow processor; FALSE otherwise.
static int SM_SWAPBUTTON
          TRUE or nonzero, if the meanings of the left and right mouse buttons are swapped; FALSE or zero otherwise.
static int SM_XVIRTUALSCREEN
          Windows 98, Windows 2000: Coordinates for the left side and the top of the virtual screen.
static int SM_YVIRTUALSCREEN
           
 
Constructor Summary
SystemMetrics()
           
 
Method Summary
static int getSystemMetrics(int index)
          Retrieves system metrics or system configuration settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SM_ARRANGE

public static int SM_ARRANGE
Flags specifying how the system arranges minimized windows. For more information about minimized windows, see section "Remarks".


SM_CLEANBOOT

public static int SM_CLEANBOOT
Value that specifies how the system was started: 0 Normal boot 1 Fail-safe boot 2 Fail-safe with network boot

Fail-safe boot (also called SafeBoot) bypasses the user's startup files.


SM_CMONITORS

public static int SM_CMONITORS
Windows 98, Windows 2000: Number of display monitors on the desktop. See Remarks for more information.


SM_CMOUSEBUTTONS

public static int SM_CMOUSEBUTTONS
Number of buttons on mouse, or zero if no mouse is installed.


SM_CXBORDER

public static int SM_CXBORDER
Width and height, in pixels, of the window border. This is equivalent to the SM_CXEDGE value for windows with the 3-D look.


SM_CYBORDER

public static int SM_CYBORDER

SM_CXCURSOR

public static int SM_CXCURSOR
Width and height, in pixels, of the cursor. The system cannot create cursors of other sizes.


SM_CYCURSOR

public static int SM_CYCURSOR

SM_CXDLGFRAME

public static int SM_CXDLGFRAME
Same as SM_CXFIXEDFRAME and SM_CYFIXEDFRAME.


SM_CYDLGFRAME

public static int SM_CYDLGFRAME

SM_CXDOUBLECLK

public static int SM_CXDOUBLECLK
Width and height, in pixels, of the rectangle around the location of a first click in a double-click sequence. The second click must occur within this rectangle for the system to consider the two clicks as a double-click. (The two clicks must also occur within a specified time. Set the width and height of the double-click rectangle, call SystemParametersInfo with the SPI_SETDOUBLECLKHEIGHT and SPI_SETDOUBLECLKWIDTH flags.


SM_CYDOUBLECLK

public static int SM_CYDOUBLECLK

SM_CXDRAG

public static int SM_CXDRAG
Width and height, in pixels, of the rectangle centered on a drag point to allow limited movement of the mouse pointer before a drag operation begins. This allows the user to click and release the mouse button easily without unintentionally starting a drag operation.


SM_CYDRAG

public static int SM_CYDRAG

SM_CXEDGE

public static int SM_CXEDGE
Dimensions, in pixels, of a 3-D border. These are the 3-D counterparts of SM_CXBORDER and SM_CYBORDER.


SM_CYEDGE

public static int SM_CYEDGE

SM_CXFIXEDFRAME

public static int SM_CXFIXEDFRAME
Thickness, in pixels, of the frame around the perimeter of a window that has a caption but is not sizable. SM_CXFIXEDFRAME is the height of the horizontal border and SM_CYFIXEDFRAME is the width of the vertical border.

Same as SM_CXDLGFRAME and SM_CYDLGFRAME.


SM_CYFIXEDFRAME

public static int SM_CYFIXEDFRAME

SM_CXFRAME

public static int SM_CXFRAME
Same as SM_CXSIZEFRAME and SM_CYSIZEFRAME.


SM_CYFRAME

public static int SM_CYFRAME

SM_CXFULLSCREEN

public static int SM_CXFULLSCREEN
Width and height of the client area for a full-screen window on the primary display monitor. 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_CYFULLSCREEN

public static int SM_CYFULLSCREEN

SM_CXHSCROLL

public static int SM_CXHSCROLL
Width, in pixels, of the arrow bitmap on a horizontal scroll bar; and height, in pixels, of a horizontal scroll bar.


SM_CYHSCROLL

public static int SM_CYHSCROLL

SM_CXHTHUMB

public static int SM_CXHTHUMB
Width, in pixels, of the thumb box in a horizontal scroll bar.


SM_CXICON

public static int SM_CXICON
The default width and height, in pixels, of an icon. The LoadIcon function can load only icons of these dimensions.


SM_CYICON

public static int SM_CYICON

SM_CXICONSPACING

public static int SM_CXICONSPACING
Dimensions, in pixels, of a grid cell for items in large icon view. Each item fits into a rectangle of this size when arranged. These values are always greater than or equal to SM_CXICON and SM_CYICON.


SM_CYICONSPACING

public static int SM_CYICONSPACING

SM_CXMAXIMIZED

public static int SM_CXMAXIMIZED
Default dimensions, in pixels, of a maximized top-level window on the primary display monitor.


SM_CYMAXIMIZED

public static int SM_CYMAXIMIZED

SM_CXMAXTRACK

public static int SM_CXMAXTRACK
Default maximum dimensions, in pixels, of a window that has a caption and sizing borders. 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 these values by processing the WM_GETMINMAXINFO message.


SM_CYMAXTRACK

public static int SM_CYMAXTRACK

SM_CXMENUCHECK

public static int SM_CXMENUCHECK
Dimensions, in pixels, of the default menu check-mark bitmap.


SM_CYMENUCHECK

public static int SM_CYMENUCHECK

SM_CXMENUSIZE

public static int SM_CXMENUSIZE
Dimensions, in pixels, of menu bar buttons, such as the child window close button used in the multiple document interface.


SM_CYMENUSIZE

public static int SM_CYMENUSIZE

SM_CXMIN

public static int SM_CXMIN
Minimum width and height, in pixels, of a window.


SM_CYMIN

public static int SM_CYMIN

SM_CXMINIMIZED

public static int SM_CXMINIMIZED
Dimensions, in pixels, of a normal minimized window.


SM_CYMINIMIZED

public static int SM_CYMINIMIZED

SM_CXMINSPACING

public static int SM_CXMINSPACING
Dimensions, in pixels, of a grid cell for minimized windows. Each minimized window fits into a rectangle this size when arranged. These values are always greater than or equal to SM_CXMINIMIZED and SM_CYMINIMIZED.


SM_CYMINSPACING

public static int SM_CYMINSPACING

SM_CXMINTRACK

public static int SM_CXMINTRACK
Minimum tracking width and height, in pixels, of a window. The user cannot drag the window frame to a size smaller than these dimensions. A window can override these values by processing the WM_GETMINMAXINFO message.


SM_CYMINTRACK

public static int SM_CYMINTRACK

SM_CXSCREEN

public static int SM_CXSCREEN
Width and height, in pixels, of the screen of the primary display monitor. These are the same values you obtain by calling GetDeviceCaps(hdcPrimaryMonitor, HORZRES/VERTRES.


SM_CYSCREEN

public static int SM_CYSCREEN

SM_CXSIZE

public static int SM_CXSIZE
Width and height, in pixels, of a button in a window's caption or title bar.


SM_CYSIZE

public static int SM_CYSIZE

SM_CXSIZEFRAME

public static int SM_CXSIZEFRAME
Thickness, in pixels, of the sizing border around the perimeter of a window that can be resized. SM_CXSIZEFRAME is the width of the horizontal border, and SM_CYSIZEFRAME is the height of the vertical border.

Same as SM_CXFRAME and SM_CYFRAME.


SM_CYSIZEFRAME

public static int SM_CYSIZEFRAME

SM_CXSMICON

public static int SM_CXSMICON
Recommended dimensions, in pixels, of a small icon. Small icons typically appear in window captions and in small icon view.


SM_CYSMICON

public static int SM_CYSMICON

SM_CXSMSIZE

public static int SM_CXSMSIZE
Dimensions, in pixels, of small caption buttons.


SM_CYSMSIZE

public static int SM_CYSMSIZE

SM_CXVIRTUALSCREEN

public static int SM_CXVIRTUALSCREEN
Windows 98, Windows 2000: Width and height, in pixels, of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN metrics are the coordinates of the top-left corner of the virtual screen.


SM_CYVIRTUALSCREEN

public static int SM_CYVIRTUALSCREEN

SM_CXVSCROLL

public static int SM_CXVSCROLL
Width, in pixels, of a vertical scroll bar; and height, in pixels, of the arrow bitmap on a vertical scroll bar.


SM_CYVSCROLL

public static int SM_CYVSCROLL

SM_CYCAPTION

public static int SM_CYCAPTION
Height, in pixels, of a normal caption area.


SM_CYKANJIWINDOW

public static int SM_CYKANJIWINDOW
For double byte character set versions of the system, this is the height, in pixels, of the Kanji window at the bottom of the screen.


SM_CYMENU

public static int SM_CYMENU
Height, in pixels, of a single-line menu bar.


SM_CYSMCAPTION

public static int SM_CYSMCAPTION
Height, in pixels, of a small caption.


SM_CYVTHUMB

public static int SM_CYVTHUMB
Height, in pixels, of the thumb box in a vertical scroll bar.


SM_DBCSENABLED

public static int SM_DBCSENABLED
TRUE or nonzero, if the double-byte character set (DBCS version of User.exe is installed; FALSE or zero otherwise.


SM_DEBUG

public static int SM_DEBUG
TRUE or nonzero, if the debugging version of User.exe is installed; FALSE or zero otherwise.


SM_MENUDROPALIGNMENT

public static int SM_MENUDROPALIGNMENT
TRUE or nonzero if drop-down menus are right-aligned with the corresponding menu bar item; FALSE or zero, if the menus are left-aligned.


SM_MIDEASTENABLED

public static int SM_MIDEASTENABLED
TRUE, if the system is enabled for Hebrew and Arabic languages.


SM_MOUSEPRESENT

public static int SM_MOUSEPRESENT
TRUE or nonzero, if a mouse is installed; FALSE or zero otherwise.


SM_MOUSEWHEELPRESENT

public static int SM_MOUSEWHEELPRESENT
Windows NT 4.0 and later, Windows 98: TRUE or nonzero, if a mouse with a wheel is installed; FALSE or zero otherwise.


SM_NETWORK

public static int SM_NETWORK
The least significant bit is set if a network is present; otherwise, it is cleared. The other bits are reserved for future use.


SM_PENWINDOWS

public static int SM_PENWINDOWS
TRUE or nonzero, if the Microsoft Windows for Pen computing extensions are installed; FALSE or zero otherwise.


SM_SECURE

public static int SM_SECURE
TRUE, if security is present; FALSE otherwise.


SM_SAMEDISPLAYFORMAT

public static int SM_SAMEDISPLAYFORMAT
Windows 98, Windows 2000: TRUE, if all the display monitors have the same color format, FALSE 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_SHOWSOUNDS

public static int SM_SHOWSOUNDS
TRUE or nonzero, if the user requires an application to present information visually in situations where it would otherwise present the information only in audible form; FALSE or zero otherwise.


SM_SLOWMACHINE

public static int SM_SLOWMACHINE
TRUE, if the computer has a low-end (slow processor; FALSE otherwise.


SM_SWAPBUTTON

public static int SM_SWAPBUTTON
TRUE or nonzero, if the meanings of the left and right mouse buttons are swapped; FALSE or zero otherwise.


SM_XVIRTUALSCREEN

public static int SM_XVIRTUALSCREEN
Windows 98, Windows 2000: Coordinates for the left side and the top of the virtual screen. The virtual screen is the bounding rectangle of all display monitors. The SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN metrics are the width and height of the virtual screen.


SM_YVIRTUALSCREEN

public static int SM_YVIRTUALSCREEN
Constructor Detail

SystemMetrics

public SystemMetrics()
Method Detail

getSystemMetrics

public static int getSystemMetrics(int index)
Retrieves system metrics or system configuration settings.

Parameters:
index - is a matric or configuration setting to retrieve.
Returns:
required system metric.