Blitz3D+ Command Reference

MaximizeWindow window

Parameters

window - window to maximize

Description

Maximizes a window so it fills the desktop work area.

This does the same thing as the user clicking the maximize button. The window receives the usual size event ($802) through the shared event queue, and any gadgets with SetGadgetLayout rules rearrange themselves to the new client size - so a level editor that starts maximized just needs sensible layout rules and everything falls into place.

WindowMaximized returns 1 while the window is in this state, and RestoreWindow puts it back to its previous size and position. A tool that remembers its window state between runs can check WindowMaximized at exit and call MaximizeWindow again at startup.

Requires Extended mode.

See also: MinimizeWindow, RestoreWindow, WindowMaximized, SetMinWindowSize, CreateWindow.

Index