github.com/iDigitalFlame/xmt@v0.5.4/device/winapi/windows_const.go (about)

     1  // Copyright (C) 2020 - 2023 iDigitalFlame
     2  //
     3  // This program is free software: you can redistribute it and/or modify
     4  // it under the terms of the GNU General Public License as published by
     5  // the Free Software Foundation, either version 3 of the License, or
     6  // any later version.
     7  //
     8  // This program is distributed in the hope that it will be useful,
     9  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    10  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    11  // GNU General Public License for more details.
    12  //
    13  // You should have received a copy of the GNU General Public License
    14  // along with this program.  If not, see <https://www.gnu.org/licenses/>.
    15  //
    16  
    17  package winapi
    18  
    19  const (
    20  	// SwHide hides the window and activates another window.
    21  	SwHide uint8 = iota
    22  	// SwNormal activates and displays a window. If the window is minimized or
    23  	// maximized, the system restores it to its original size and position. An
    24  	// application should specify this flag when displaying the window for the
    25  	// first time.
    26  	SwNormal
    27  	// SwMinimized activates the window and displays it as a minimized window.
    28  	SwMinimized
    29  	// SwMaximize activates the window and displays it as a maximized window.
    30  	SwMaximize
    31  	// SwNoActive displays a window in its most recent size and position. This
    32  	// value is similar to SwNormal, except that the window is not activated.
    33  	SwNoActive
    34  	// SwShow activates the window and displays it in its current size and
    35  	// position.
    36  	SwShow
    37  	// SwMinimize minimizes the specified window and activates the next top-level
    38  	// window in the Z order.
    39  	SwMinimize
    40  	// SwMinimizeNoActive displays the window as a minimized window. This value
    41  	// is similar to SwMinimizeNoActive, except the window is not activated.
    42  	SwMinimizeNoActive
    43  	// SwShowNoActive displays the window in its current size and position.
    44  	// This value is similar to SwShow, except that the window is not activated.
    45  	SwShowNoActive
    46  	// SwRestore activates and displays the window. If the window is minimized
    47  	// or maximized, the system restores it to its original size and position.
    48  	// An application should specify this flag when restoring a minimized window.
    49  	SwRestore
    50  	// SwDefault sets the show state based on the SW_ value specified in the
    51  	// STARTUPINFO structure passed to the CreateProcess function by the program
    52  	// that started the application.
    53  	SwDefault
    54  	// SwMinimizeForce minimizes a window, even if the thread that owns the
    55  	// window is not responding. This flag should only be used when minimizing
    56  	// windows from a different thread.
    57  	SwMinimizeForce
    58  )