1.2.20 Window State

The window state can be open (minimized, maximized, or restored), hidden or visible, and enabled or disabled. The initial state of a window depends on whether the following window styles are used:

WS_DISABLED

WS_MINIMIZE

WS_MAXIMIZE

WS_VISIBLE

By default, Windows creates windows that are initially enabled—that is, windows that can start receiving input messages immediately. An application can disable input to a new window by specifying the WS_DISABLED window style.

A new window is not displayed until an application opens it by using the ShowWindow function or specifies the WS_VISIBLE window style when it creates the window. For overlapped windows, the WS_ICONIC window style creates a window that is minimized initially.