EM_GETEDITSTYLE message

Retrieves the current edit style flags.

Parameters

wParam

Not used; must be zero.

lParam

Not used; must be zero.

Return value

Returns the current edit style flags, which can include one or more of the following values:

Return code Description
SES_BEEPONMAXTEXT
Rich Edit will call the system beeper if the user attempts to enter more than the maximum characters.
SES_BIDI
Turns on bidirectional processing. This is automatically turned on by Rich Edit if any of the following window styles are active: WS_EX_RIGHT, WS_EX_RTLREADING, WS_EX_LEFTSCROLLBAR. However, this setting is useful for handling these window styles when using a custom implementation of ITextHost (default: 0).
SES_CTFALLOWEMBED
Windows XP with SP1: Allow embedded objects to be inserted using TSF (default: 0).
SES_CTFALLOWPROOFING
Windows XP with SP1: Allows TSF proofing tips (default: 0).
SES_CTFALLOWSMARTTAG
Windows XP with SP1: Allows TSF SmartTag tips (default: 0).
SES_CTFNOLOCK
Windows 8: Do not allow the TSF lock read/write access. This pauses TSF input.
SES_DEFAULTLATINLIGA
Windows 8: Fonts with an fi ligature are displayed with default OpenType features resulting in improved typography (default: 0).
SES_DRAFTMODE
Windows XP with SP1: Use draft mode fonts to display text. Draft mode is an accessibility option where the control displays the text with a single font; the font is determined by the system setting for the font used in message boxes. For example, accessible users may read text easier if it is uniform, rather than a mix of fonts and styles (default: 0).
SES_EMULATE10
Windows 8: Emulate RichEdit 1.0 behavior.
Note: If you really want this behavior, use the Windows riched32.dll instead of riched20.dll or msftedit.dll. Riched32.dll had more functionality.
SES_EMULATESYSEDIT
When this bit is on, rich edit attempts to emulate the system edit control (default: 0).
SES_EXTENDBACKCOLOR
Extends the background color all the way to the edges of the client rectangle (default: 0).
SES_HIDEGRIDLINES
Windows XP with SP1: If the width of table gridlines is zero, gridlines are not displayed. This is equivalent to the hide gridlines feature in Word's table menu (default: 0).
SES_HYPERLINKTOOLTIPS
Windows 8: When the cursor is over a link, display a tooltip with the target link address (default: 0).
SES_LOGICALCARET
Windows 8: Provide logical caret information instead of a caret bitmap as described in ITextHost::TxSetCaretPos (default: 0).
SES_LOWERCASE
Converts all input characters to lowercase (default: 0).
SES_MAPCPS
Obsolete. Do not use.
SES_MULTISELECT
Windows 8: Enable multiselection with individual mouse selections made while the Ctrl key is pressed (default: 0).
SES_NOEALINEHEIGHTADJUST
Windows 8: Do not adjust line height for East Asian text (default: 0 which adjusts the line height by 15%).
SES_NOFOCUSLINKNOTIFY
Sends EN_LINK notification from links that do not have focus.
SES_NOIME
Disallows IMEs for this instance of the rich edit control (default: 0).
SES_NOINPUTSEQUENCECHK
When this bit is on, rich edit does not verify the sequence of typed text. Some languages (such as Thai and Vietnamese) require verifying the input sequence order before submitting it to the backing store (default: 0).
SES_SCROLLONKILLFOCUS
When KillFocus occurs, scroll to the beginning of the text (character position equal to 0) (default: 0).
SES_SMARTDRAGDROP
Windows 8: Add or delete a space according to the context when dropping text (default: 0).
SES_USECRLF
Obsolete. Do not use.
SES_WORDDRAGDROP
Windows 8: If word select is active, ensure that the drop location is at a word boundary (default: 0).
SES_UPPERCASE
Converts all input characters to uppercase (default: 0).
SES_USEAIMM
Uses the Active IMM input method component that ships with Internet Explorer 4.0 or later (default: 0).
SES_USEATFONT
Windows XP with SP1: Uses an @ font, which is designed for vertical text; this is used with the ES_VERTICAL window style. The name of an @ font begins with the @ symbol, for example, "@Batang" (default: 0, but is automatically turned on for vertical text layout).
SES_USECTF
Windows XP with SP1: Turns on TSF support. (default: 0)
SES_XLTCRCRLFTOCR
Turns on translation of CRCRLFs to CRs. When this bit is on and a file is read in, all instances of CRCRLF will be converted to hard CRs internally. This will affect the text wrapping. Note that if such a file is saved as plain text, the CRs will be replaced by CRLFs. This is the .txt standard for plain text (default: 0, which deletes CRCRLFs on input).

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Redistributable
Rich Edit 3.0
Header
Richedit.h

See also

EM_SETEDITSTYLE