Nonclient-Area Components

The nonclient area of a window can include a title bar, window menu, minimize and maximize buttons, sizing border, and horizontal and vertical scroll bars. An application can create a window with one or more of these components by specifying the following styles in the CreateWindowEx function.

Style Description
WS_CAPTION Creates a window that has a title bar (includes the WS_BORDER style).
WS_HSCROLL Creates a window that has a horizontal scroll bar.
WS_MAXIMIZEBOX Creates a window that has a maximize button. Cannot be combined with the WS_EX_CONTEXTHELP style.
WS_MINIMIZEBOX Creates a window that has a minimize button. Cannot be combined with the WS_EX_CONTEXTHELP style.
WS_SYSMENU Creates a window that has a window-menu in its title bar. The WS_CAPTION style must also be specified.
WS_VSCROLL Creates a window that has a vertical scroll bar.