EM_SETEDITSTYLE Message
The EM_SETEDITSTYLE message sets 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_SETEDITSTYLE,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Specifies one of the following values.
- SES_EMULATESYSEDIT
- When this bit is on, rich edit attempts to emulate the system edit control.
- SES_BEEPONMAXTEXT
- Rich Edit will call the system beeper if the user attempts to enter 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 AIMM input method component that ships with Microsoft® Internet Explorer 4.0 or later.
- SES_UPPERCASE
- Converts all input characters to uppercase.
- SES_LOWERCASE
- Converts all input characters to lowercase.
- 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.
- 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.
- lParam
-
A mask consisting of one or more of the
wParam values. Only the values specified in this mask will be set or cleared. This allows a single flag to be set or cleared without reading the current flag states.
Return Value
The return value is the state of the edit style flags after rich edit has attempted to implement your edit style changes. The edit style flags are a set of flags that indicate the current edit style, made up of the values in the preceding table .
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
Millenium Edition, Windows
2000 |
---|
See Also
Rich Edit Controls, EM_GETEDITSTYLE