The window state can be opened or closed (iconic), hidden or visible, and enabled or disabled. The initial state of a window can be set by using the following window styles:
WS_DISABLED
WS_MINIMIZE
WS_MAXIMIZE
WS_VISIBLE
Windows creates windows that are initially enabled for input, that is, windows that can start receiving input messages immediately. In some cases, an appli-cation may need to disable input to a new window. It can disable input 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.