Rich Edit Control Styles

The following window styles are unique to rich edit controls:

Style Description
ES_DISABLENOSCROLL Disables scrollbars instead of hiding them when they are not needed.
ES_EX_NOCALLOLEINIT Prevents the control from calling the OleInitialize function when created. Useful only in dialog templates because CreateWindowEx does not accept this style.
ES_NOIME Disables the input method editor (IME) operation. Available for Asian-languages only.
ES_SAVESEL Preserves the selection when the control loses the focus. By default, the entire contents of the control are selected when it regains the focus.
ES_SELFIME Directs the rich edit control to allow the application to handle all IME operations. Available for Asian-languages only.
ES_SUNKEN Displays the control with a sunken border style so that the rich edit control appears recessed into its parent window.

Windows 95: Applications developed for Windows 95 should use WS_EX_CLIENTEDGE instead of ES_SUNKEN.

ES_VERTICAL Draws text and objects in a vertical direction. Available for Asian-languages only.

Rich edit controls also support the following edit control styles. To allow more than one line of text, you must specify the ES_MULTILINE style.

ES_AUTOHSCROLL ES_NOHIDESEL
ES_AUTOVSCROLL ES_READONLY
ES_CENTER ES_RIGHT
ES_LEFT ES_WANTRETURN
ES_MULTILINE

Rich edit controls do not support the following edit control styles:

ES_LOWERCASE ES_PASSWORD
ES_OEMCONVERT ES_UPPERCASE