Skip navigation links
JNA API 5.6.0
com.sun.jna.platform.win32

Class WinUser.WINDOWPLACEMENT

  • Enclosing interface:
    WinUser


    @Structure.FieldOrder(value={"length","flags","showCmd","ptMinPosition","ptMaxPosition","rcNormalPosition"})
    public static class WinUser.WINDOWPLACEMENT
    extends Structure
    Contains information about the placement of a window on the screen.
    • Field Detail

      • WPF_SETMINPOSITION

        public static final int WPF_SETMINPOSITION
        The coordinates of the minimized window may be specified.
        See Also:
        Constant Field Values
      • WPF_RESTORETOMAXIMIZED

        public static final int WPF_RESTORETOMAXIMIZED
        The restored window will be maximized, regardless of whether it was maximized before it was minimized. This setting is only valid the next time the window is restored. It does not change the default restoration behavior. This flag is only valid when the SW_SHOWMINIMIZED value is specified for the showCmd member.
        See Also:
        Constant Field Values
      • WPF_ASYNCWINDOWPLACEMENT

        public static final int WPF_ASYNCWINDOWPLACEMENT
        If the calling thread and the thread that owns the window are attached to different input queues, the system posts the request to the thread that owns the window. This prevents the calling thread from blocking its execution while other threads process the request.
        See Also:
        Constant Field Values
      • length

        public int length
        The length of the structure, in bytes.
      • flags

        public int flags
        The flags that control the position of the minimized window and the method by which the window is restored. This member can be one or more of WPF_SETMINPOSITION, WPF_RESTORETOMAXIMIZED, or WPF_ASYNCWINDOWPLACEMENT.
      • showCmd

        public int showCmd
        The current show state of the window. This member can be one of SW_HIDE, SW_MAXIMIZE, SW_MINIMIZE, SW_RESTORE, SW_SHOW, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_SHOWNA, SW_SHOWNOACTIVATE, SW_SHOWNORMAL. Note that here SW_MAXIMIZE and SW_SHOWMAXIMIZED are the same value.
      • ptMinPosition

        public WinDef.POINT ptMinPosition
        Virtual position of the window's upper-left corner when minimized. Usually largely negative. May be in workspace coordinates.
      • ptMaxPosition

        public WinDef.POINT ptMaxPosition
        Coordinates of the window's upper-right corner when maximized. Usually small and negative. May be in workspace coordinates.
      • rcNormalPosition

        public WinDef.RECT rcNormalPosition
        The window's coordinates when the window is in the restored position. May be in workspace coordinates.
    • Constructor Detail

      • WINDOWPLACEMENT

        public WINDOWPLACEMENT()
JNA API 5.6.0

Copyright © 2007-2018 Timothy Wall. All Rights Reserved.