CRichEdit.SetLangOptionsmethod
Sets options for Input Method Editor (IME) and Asian language support in a rich edit control.
Syntax
FUNCTION SetLangOptions (BYVAL hRichEdit AS HWND, BYVAL lgoptions AS LONG) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
lgoptions | Specifies the language options. For a list of possible values, see EM_GETLANGOPTIONS. |
Return value
This message returns a value of 1.
Description
Sets options for Input Method Editor (IME) and Asian language support in a rich edit control.
Remarks
The SetLangOptions message controls the following:
- Automatic font binding.
- Automatic keyboard switching.
- Automatic font size adjustment.
- Use of user-interface default fonts instead of document default fonts.
- Notifications to client during IME composition.
- How IME aborts composition mode.
- Spell checking, autocorrect, and touch keyboard prediction.
This message sets the values of all language option flags. To change a subset of the flags, send the RichEdit-GetLangOptions message to get the current option flags, change the flags that you need to change, and then send the SetLangOptions message with the result.
Reference
- Defined in AfxNova/CRichEdit.inc:1058
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class