The following styles can be specified in the dwExStyle parameter of the CreateWindowEx function.
Style | Description |
---|---|
WS_EX_ACCEPTFILES | Specifies that a window created with this style accepts drag-drop files. |
WS_EX_CONTEXTHELP | Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message. The child window should pass the message to the parent window procedure, which should call the WinHelp function using the HELP_WM_HELP command. The application displays a pop-up window that typically contains help for the child window. WS_EX_CONTEXTHELP cannot be used with the WS_MAXIMIZEBOX or WS_MINIMIZEBOX styles. |
WS_EX_CONTROLPARENT | Allows the user to navigate among the child windows of the window by using the tab key. |
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_NOPARENTNOTIFY | Specifies that a child window created with this style will not send the WM_PARENTNOTIFY message to its parent window when either created or destroyed. |
WS_EX_TOPMOST | Specifies that a window created with this style should be placed above all non-topmost windows and stay above them even when the window is deactivated. |
WS_EX_TOOLWINDOW | Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the task bar or in the window that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing alt+space. |