Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "SystemMetric" in [All]

Enums

1: SPI
.

      /// To retrieve the width of the double-click rectangle, call GetSystemMetrics with the SM_CXDOUBLECLK flag.

.

      /// To retrieve the height of the double-click rectangle, call GetSystemMetrics with the SM_CYDOUBLECLK flag.

.

      /// To retrieve the drag width, call GetSystemMetrics with the SM_CXDRAG flag.

.

      /// To retrieve the drag height, call GetSystemMetrics with the SM_CYDRAG flag.

.

      /// Using this value is equivalent to calling GetSystemMetrics (SM_SHOWSOUNDS). That is the recommended call.

.

    static extern int GetSystemMetrics(SystemMetric smIndex);

.

    /// Flags used with the Windows API (User32.dll):GetSystemMetrics(SystemMetric smIndex)

.

    public enum SystemMetric:int

.

  public enum SystemMetric

.

Public Enum SystemMetric As Integer

.

Public Enum SystemMetric As Integer

.

[SystemMetric] on MSDN

shell32

.

    Shared Function GetSystemMetrics(ByVal Index As Integer) As Integer

.

These images are the size specified by GetSystemMetrics called with SM_CXSMICON and GetSystemMetrics called with SM_CYSMICON.

user32

.

static extern int GetSystemMetrics(SystemMetric smIndex);

.

Public Declare Auto Function GetSystemMetrics Lib "user32.dll" (ByVal smIndex As Integer) As Integer

.
SystemMetric smIndex
.

The C# and VB Definition of the SystemMetric enum can be found here:

.
SystemMetric http://pinvoke.net/default.aspx/Enums.SystemMetric
.

* GetSystemMetrics(SM_CMONITORS) counts only display monitors. This is different from EnumDisplayMonitors, which enumerates display monitors and also non-display pseudo-monitors.

.

  //         *** PASTE SYSTEMMETRIC ENUM HERE ***

.

          public static extern int GetSystemMetrics(SystemMetric smIndex);

.

         foreach (int i in Enum.GetValues(typeof(WindowsAPI.SystemMetric)))

.

         x = Enum.GetName(typeof(WindowsAPI.SystemMetric),i);

.

         u=WindowsAPI.GetSystemMetrics(( WindowsAPI.SystemMetric)i);

.
Documentation
[GetSystemMetrics] on MSDN
.

GetWindowDC is intended for special painting effects within a window's nonclient area. Painting in nonclient areas of any window is not recommended. The GetSystemMetrics function can be used to retrieve the dimensions of various parts of the nonclient area, such as the title bar, menu, and scroll bars. The GetDC function can be used to retrieve a device context for the entire screen.

shlwapi

7: IsOS
.

     /// GetSystemMetrics(SM_REMOTESESSION).

.

     /// successors. Equivalent to GetSystemMetrics(SM_MEDIACENTER).


 
Access PInvoke.net directly from VS: