EM_SETOPTIONS Message
The EM_SETOPTIONS message sets the options for a rich edit control.
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_SETOPTIONS,
| // message ID
|
(WPARAM) wParam,
| // = (WPARAM) () wParam; |
(LPARAM) lParam
| // = (LPARAM) () lParam; |
);
| |
Parameters
- wParam
-
Specifies the operation, which can be one of these values.
- ECOOP_SET
- Sets the options to those specified by lParam.
- ECOOP_OR
- Combines the specified options with the current options.
- ECOOP_AND
- Retains only those current options that are also specified by lParam.
- ECOOP_XOR
- Logically exclusive OR the current options with those specified by lParam.
- lParam
-
Specifies one or more of the following values.
- ECO_AUTOWORDSELECTION
- Automatic selection of word on double-click.
- ECO_AUTOVSCROLL
- Same as ES_AUTOVSCROLL style.
- ECO_AUTOHSCROLL
- Same as ES_AUTOHSCROLL style.
- ECO_NOHIDESEL
- Same as ES_NOHIDESEL style.
- ECO_READONLY
- Same as ES_READONLY style.
- ECO_WANTRETURN
- Same as ES_WANTRETURN style.
- ECO_SELECTIONBAR
- Same as ES_SELECTIONBAR style.
- ECO_VERTICAL
- Same as ES_VERTICAL style. Available in Asian-language versions only.
Return Value
This message returns the current option of edit control.
Message Information
Header | Declared in Richedit.h |
---|
Minimum operating systems |
Windows
95, Windows NT
4.0 |
---|
See Also
Rich Edit Controls, Rich Edit Control Styles