MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Shell >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

EM_GETEDITSTYLE Message


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_EMULATESYSEDITWhen this bit is on, Microsoft Rich Edit attempts to emulate the system edit control.
SES_BEEPONMAXTEXTRich Edit calls the system beeper if the user attempts to input more than the maximum characters.
SES_EXTENDBACKCOLORExtends the background color all the way to the edges of the client rectangle.
SES_USEAIMMUses the Active Input Method Manager (IMM) input method component that ships with Microsoft Internet Explorer 4.0 or later.
SES_UPPERCASEConverts all input characters to upper case.
SES_LOWERCASEConverts all input characters to lower case.
SES_NOINPUTSEQUENCECHKWhen 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_XLTCRCRLFTOCRTurns 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_NOIMEDisallows IMEs for this control instance.
SES_BIDITurns 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_SCROLLONKILLFOCUSWhen KillFocus occurs, scroll to the beginning of the text (cp=0).
SES_DRAFTMODEWindows 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_USECTFWindows XP SP1:Turns on Text Services Framework (TSF) support.
SES_HIDEGRIDLINESWindows 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_USEATFONTWindows 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_CTFALLOWEMBEDWindows XP SP1:Allows embedded objects to be inserted using TSF.
SES_CTFALLOWSMARTTAGWindows XP SP1:Allows TSF SmartTag tips.
SES_CTFALLOWPROOFINGWindows XP SP1:Allows TSF proofing tips.

Message Information

HeaderDeclared 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
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 © 2003 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility