The Win32 API provides the following border styles.
Style | Description |
WS_BORDER | Creates a window with a thin-line border. |
WS_DLGFRAME | Creates a window with a double border, a style typically used with dialog boxes. A window with this style cannot have a title bar. |
WS_EX_DLGMODALFRAME | Creates a window with a double border. Unlike the WS_DLGFRAME style, an application can also specify the WS_CAPTION style to create a title bar for the window. |
WS_EX_STATICEDGE | Creates a window with a three-dimensional border style intended to be used for items that do not accept user input. |
WS_THICKFRAME | Creates a window with a sizing border. |
A window with the WS_OVERLAPPED or WS_POPUPWINDOW style has the WS_BORDER style by default. One of the other border styles must be combined with the WS_OVERLAPPED or WS_POPUPWINDOW style to give an overlapped window a different border style.
If no border style is specified for a window with the WS_POPUP or WS_CHILD style, the system creates a borderless window. An application can use borderless child windows to divide the parent window's client area while keeping the divisions invisible to the user.