Maximize, minimize a window

Ever tried to maximize a Progress window, with respect to the size and position of the Windows Taskbar? It is easy if you know about this not-well-documented feature (in 8.2A and up):

ASSIGN
   {&WINDOW-NAME}:MAX-HEIGHT   = ?
   {&WINDOW-NAME}:MAX-WIDTH    = ?
   {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MAXIMIZED.

The fun part is assigning the unknown value to max-height/width. This results in dynamic resizing even when the user moves the Taskbar or changes the display resolution!

Minimize and Restore

To restore a Window to its original state, use the following code:

ASSIGN {&WINDOW-NAME}:WINDOW-STATE = WINDOW-NORMAL.

To minimize a Window, use the following code:

ASSIGN {&WINDOW-NAME}:WINDOW-STATE = WINDOW-MINIMIZED.