SW (Constants)
Last changed: jnm2-74.212.46.188

.
Summary
Specify how ShowWindow and ShowWindowAsync show or hide a window

C# Constants:

  const int        SW_HIDE         = 0;
  const int        SW_SHOWNORMAL     = 1;
  const int        SW_NORMAL        = 1;
  const int        SW_SHOWMINIMIZED    = 2;
  const int        SW_SHOWMAXIMIZED    = 3;
  const int        SW_MAXIMIZE    = 3;
  const int        SW_SHOWNOACTIVATE    = 4;
  const int        SW_SHOW        = 5;
  const int        SW_MINIMIZE    = 6;
  const int        SW_SHOWMINNOACTIVE    = 7;
  const int        SW_SHOWNA        = 8;
  const int        SW_RESTORE    = 9;
  const int        SW_SHOWDEFAULT    = 10;
  const int        SW_FORCEMINIMIZE    = 11;
  const int        SW_MAX        = 11;

C# Enumeration:

enum enumShowWindow : int

{

    Hide         = 0,
    Normal        = 1,
    ShowMinimized   = 2,
    ShowMaximized   = 3,
    ShowNoActivate  = 4,
    Show        = 5,
    Minimize        = 6,
    ShowMinNoActive = 7,
    ShowNA        = 8,
    Restore        = 9,
    ShowDefault     = 10,
    ForceMinimize   = 11,
    Max        = 11

}

VB Constants:

    Const SW_HIDE As Integer = 0
    Const SW_SHOWNORMAL As Integer = 1
    Const SW_NORMAL As Integer = 1
    Const SW_SHOWMINIMIZED As Integer = 2
    Const SW_SHOWMAXIMIZED As Integer = 3
    Const SW_MAXIMIZE As Integer = 3
    Const SW_SHOWNOACTIVATE As Integer = 4
    Const SW_SHOW As Integer = 5
    Const SW_MINIMIZE As Integer = 6
    Const SW_SHOWMINNOACTIVE As Integer = 7
    Const SW_SHOWNA As Integer = 8
    Const SW_RESTORE As Integer = 9
    Const SW_SHOWDEFAULT As Integer = 10
    Const SW_FORCEMINIMIZE As Integer = 11
    Const SW_MAX As Integer = 11

Notes:

None.