EM_SETCTFMODEBIAS message

Sets the Text Services Framework (TSF) mode bias for a rich edit control.

Parameters

wParam

Mode bias value. This can be one of the following values.

Value Meaning
CTFMODEBIAS_DEFAULT
There is no mode bias.
CTFMODEBIAS_FILENAME
The bias is to a filename.
CTFMODEBIAS_NAME
The bias is to a name.
CTFMODEBIAS_READING
The bias is to the reading.
CTFMODEBIAS_DATETIME
The bias is to a date or time.
CTFMODEBIAS_CONVERSATION
The bias is to a conversation.
CTFMODEBIAS_NUMERIC
The bias is to a number.
CTFMODEBIAS_HIRAGANA
The bias is to hiragana strings.
CTFMODEBIAS_KATAKANA
The bias is to katakana strings.
CTFMODEBIAS_HANGUL
The bias is to Hangul characters.
CTFMODEBIAS_HALFWIDTHKATAKANA
The bias is to half-width katakana strings.
CTFMODEBIAS_FULLWIDTHALPHANUMERIC
The bias is to full-width alphanumeric characters.
CTFMODEBIAS_HALFWIDTHALPHANUMERIC
The bias is to half-width alphanumeric characters.

lParam

Not used; must be zero.

Return value

If successful, the return value is the new TSF mode bias value. If unsuccessful, the return value is the old TSF mode bias value.

Remarks

When a Microsoft Rich Edit application uses TSF, it can select the TSF mode bias. This message sets the criteria by which an alternative choice appears at the top of the list for selection.

To set the mode bias for the Input Method Editor (IME), use EM_SETIMEMODEBIAS.

Requirements

Requirement Value
Minimum supported client
Windows XP with SP1 [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Reference

EM_GETCTFMODEBIAS

EM_SETIMEMODEBIAS