This method minimizes a window (shrinks the window to an icon). The result is the same as clicking the Minimize button on the right corner of its title bar.
If the window was active, it remains active. In this case, its window menu and accelerators remain functional.
WindowIconize( window )
The optional window identifies the window to be minimized. If no value is passed for window, the window shell of the current control is minimized.