Window and window object styles¶
WS_DISABLED |
Create disabled |
WS_INVISIBLE |
Create invisible |
WS_INDENT |
Indent border |
WS_STANDOUT |
Standout border |
WS_PLAIN |
Plain border |
WS_LJD | RJD |
Left-justify | right-justify data |
WS_LJT | RJT | CJT |
Left-justify | right-justify | centre title |
WS_NOTABSTOP |
Prevents control from receiving input focus |
WS_CLICKONLY |
Prevents control from receiving input focus when user navigates with tab keys |
WS_MAXIMISED |
Create window maximised |
WS_MINIMISED |
Create minimised |
WS_CLOSEBUTTON |
Window close button |
WS_MAXBUTTON |
Window maximise button |
WS_MINBUTTON |
Window minimise button |
WS_NORESIZE |
Prohibit window resize |
WS_CONTAINER |
OLE container window |
WS_CAPTION |
Create window with caption bar |
WS_HOTWINDOW |
Hot window - can be closed outside a dialog |
WS_DROP_TARGET |
Window into which objects can be dropped (See Drag and drop) |
WS_OWNED |
Owned window |
WS_TABCONTROL |
|
WS_MULTILINE |
Multi line tab control |
WS_RJTABS |
Right justify tabs in tab control window |
WS_FIXEDWIDTH |
Make all tabs in a tab control window the same width |
WS_HSCROLL |
Horizontal scroll bar |
WS_VSCROLL |
Vertical scroll bar |
WS_NOROWLINES |
No lines between table rows |
WS_PLAINLINES |
Plain lines between table rows and columns |
WS_COMPACT |
Compact height - reduced by two pixels (listboxes) |
WS_HLIGHT_DARKEN |
Display selected line(s) in a table by darkening |
WS_COMPACT |
Compact height listbox |
WS_CHECKED |
Create button checked |
WS_HOTBUTTON |
Call button event function outside a dialog |
WS_CANCEL_BUTTON |
Cancel button in dialogs |
WS_DEFAULT_BUTTON |
Default button in dialogs |
WS_SCALE |
Scale graphic to the specified width or height |
WS_THEMED |
Draw static text using the current theme’s style and colours |
WS_POPUP |
Popup menu |
WS_SELECTED |
Create menu item selected |
WS_BULLET |
Use a bullet for selected menu item |
WS_FILE_MENU |
Merge into OLE menu (File menu position) |
WS_VIEW_MENU |
Merge into OLE menu (View menu position) |
WS_WINDOW_MENU |
Merge into OLE menu (Window menu position) |
WS_VERB_MENU |
Create menu sub-tree with OLE verbs for all controls in window |
WS_AUTOLICENSE |
Send the license string to an OLE control without checking it |
These are style flags which may be attached to windows and window objects. Not all flags are appropriate for use with all object types.
See Style flags for general information.
For details of the flags which may be used with windows, and with each object type, see:
RELATED TOPICS |