EM_SETIMEOPTIONS

Sets the IME options. This message is available only in Asian-language versions of the operating system.

EM_SETIMEOPTIONS
wParam = (WPARAM) (UINT) fOperation;
lParam = (LPARAM) (int) fOptions;
 

Parameters

fOperation
Operation flag. Can be one of the following values:
ECOOP_SET Set the options to those specified by fOptions.
ECOOP_OR Combine the specified options with the current options.
ECOOP_AND Retain only those current options that are also specified by fOptions.
ECOOP_XOR Logically Exclusive OR the current options with those specified by fOptions.

fOptions
IME option flag. Can be a combination of the following values:
IMF_CLOSESTATUSWINDOW Closes the IME status window when the control receives the input focus.
IMF_FORCEACTIVE Activates the IME when the control receives the input focus.
IMF_FORCEDISABLE Disables the IME when the control receives the input focus.
IMF_FORCEENABLE Enables the IME when the control receives the input focus.
IMF_FORCEINACTIVE Inactivates the IME when the control receives the input focus.
IMF_FORCENONE Disables IME handling.
IMF_FORCEREMEMBER Restores the previous IME status when the control receives the input focus.
IMF_MULTIPLEEDIT Specifies that the composition string will not be canceled or determined by focus changes. This allows an application to have separate comosition strings on each rich edit control.

Return Values

Returns nonzero if successful, zero otherwise.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages, EM_GETIMEOPTIONS