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
Download Visual Studio Add-In

Search Results for "SystemMetric" in [All]

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.

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.

shlwapi

5: IsOS
.

     /// GetSystemMetrics(SM_REMOTESESSION).

.

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

Enums

.

    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


 
Access PInvoke.net directly from VS: