Nonclient Area Styles

Styles that affect the appearance of the nonclient area of a window are described in the following table.

Style Description
WS_BORDER Specifies a window with a thin-line border.
WS_CAPTION Specifies a window with a title bar and border.
WS_DLGFRAME Specifies a window with a dialog box border style. A window with this style cannot have a title bar.
WS_HSCROLL Specifies a window with a horizontal scroll bar.
WS_VSCROLL Specifies a window with a vertical scroll bar.
WS_OVERLAPPED Specifies a window with the WS_BORDER and WS_CAPTION styles.
WS_SYSMENU Specifies a window with a window menu on its title bar. Use in conjunction with the WS_CAPTION style.
WS_EX_CAPTIONOKBTN Includes an OK button in the title bar.
WS_EX_CLIENTEDGE Specifies a window with a border with a sunken edge.
WS_EX_CONTEXTHELP Includes a Help button (?) in the title bar of the window.
WS_EX_DLGMODALFRAME Specifies a window with a double border.
WS_EX_OVERLAPPEDWINDOW Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles.
WS_EX_STATICEDGE Specifies a window with a three-dimensional border style. This style should be used for items that do not accept user input.
WS_EX_WINDOWEDGE Specifies a window with a border with a raised edge.

Tip Windows CE does not have a system menu, but you can use the WS_SYSMENU style to add the standard Close (X) button to a window's title bar.