The EM_GETEDITSTYLE message retrieves the current edit style flags.
Syntax
To send this message, call the
SendMessage
function as follows.
lResult = SendMessage(
| // returns LRESULT in lResult
|
(HWND) hWndControl,
| // handle to destination control
|
(UINT) EM_GETEDITSTYLE,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Not used; must be zero.
- lParam
-
Not used; must be zero.
Return Value
The return value can be one or more of the following values.
SES_EMULATESYSEDIT | When this bit is on, Microsoft Rich Edit attempts to emulate the system edit control. |
SES_BEEPONMAXTEXT | Rich Edit calls the system beeper if the user attempts to input more than the maximum characters. |
SES_EXTENDBACKCOLOR | Extends the background color all the way to the edges of the client rectangle. |
SES_USEAIMM | Uses the Active Input Method Manager (IMM) input method component that ships with Microsoft Internet Explorer 4.0 or later. |
SES_UPPERCASE | Converts all input characters to upper case. |
SES_LOWERCASE | Converts all input characters to lower case. |
SES_NOINPUTSEQUENCECHK | When this bit is on, rich edit does not verify the sequence of typed text. Some languages (such as Thai and Vietnamese) must verify the input sequence order before submitting it to the backing store. |
SES_XLTCRCRLFTOCR | Turns on translation of CRCRLFs to CRs. When this bit is on and a file is read in, all instances of CRCRLF are converted to hard CRs internally. This affects the text wrapping. Note that if such a file is saved as plain text, the CRs are replaced by CRLFs. This is the .txt standard for plain text. |
SES_NOIME | Disallows IMEs for this control instance. |
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. |
SES_SCROLLONKILLFOCUS | When KillFocus occurs, scroll to the beginning of the text (cp=0). |
SES_DRAFTMODE | Windows XP SP1:Uses draftmode 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. |
SES_USECTF | Windows XP SP1:Turns on Text Services Framework (TSF) support. |
SES_HIDEGRIDLINES | Windows XP SP1:If the table gridlines width is zero, gridlines are not displayed. This is equivalent to the hide gridlines feature in Microsoft Word's table menu. |
SES_USEATFONT | Windows XP 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". |
SES_CTFALLOWEMBED | Windows XP SP1:Allows embedded objects to be inserted using TSF. |
SES_CTFALLOWSMARTTAG | Windows XP SP1:Allows TSF SmartTag tips. |
SES_CTFALLOWPROOFING | Windows XP SP1:Allows TSF proofing tips. |
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows 95 with Rich Edit 3.0, Windows NT 4.0 with Rich Edit 3.0, Windows Millennium Edition, Windows 2000 |
---|
See Also
Rich Edit Controls Overview, EM_SETEDITSTYLE