Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-8824

Update window positions and sizes when the work area changes (triggered by resolution changes or taskbar resizes)

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Major
    • None
    • Win32SS

    Description

      When calling `SystemParametersInfo` with `SPI_SETWORKAREA` —which commonly happens when resolution changes or the task bar expands a few notches— ReactOS needs to resize maximized windows to keep them fitting inside of the available display dimensions.

      Normal windows also change, manual testing shows that when resolution is reduced —or the taskbar makes the work area smaller, doesn't really matter— non-maximized windows that end up partially out of the new borders are moved by the OS to fit within the new area.

      And if the area is too small they get forcefully resized either vertically or horizontally until they finally fit.

      So, basically, no window is ever left floating out of the display surface.


      References:

      SystemParametersInfo in MSDN — http://msdn.microsoft.com/en-us/library/windows/desktop/ms724947%28v=vs.85%29.aspx
      The function in ReactOS — https://git.reactos.org/?p=reactos.git;a=blob;f=reactos/win32ss/user/ntuser/sysparams.c;#l973

      Attachments

        Issue Links

          Activity

            People

              hbelusca hbelusca
              Swyter Swyter
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: