Similarly, you can optionally add a source connection to provide the input context of the refinement.
类似地,可以选择性添加一个源连接来提供细分的输入上下文。
You can create an input context by using the ImmCreateContext function.
你可以用调用ImmCreateContext函数来创建一个输入上下文。
You can create an input context by using the ImmCreateContext function.
在结束应用程序之前,你必须销毁所有你创建的输入上下文。
By default, the system creates and assigns an input context to each thread.
默认情况下,系统会为每一个线程创建并指定一个输入上下文。
Within the thread, this default input context is a shared resource and is associated with each newly created window.
在线程中,这个默认的输入上下文是一个共享资源,并且将会与每个新建窗口关联。
Because the default input context is a Shared resource, any changes you make to it apply to all Windows in the thread.
因为默认的输入上下文是一个共享资源,你对它的任何改变都将应用于线程中的所有窗口。
Typically, you save this handle and later reassociate it with the window when you no longer want to use your own input context.
通常,你需要保存这个句柄,当你不想再使用自己的输入上下文时,再把它与窗口重新关联上。
However, you can override this default behavior by creating and associating your own input context to one or more Windows of the thread.
不过,你可以通过为线程中的一个或多个窗口生成并关联自己的输入上下文的方法来重写默认的行为。
To retrieve or set information in the IME, an application must first retrieve a handle to the input context associated with a specified window.
要在IME中检索或设置信息,应用程序必须首先获得一个与指定窗口相关联的输入上下文的句柄。
An input context is an internal structure, maintained by the IME, that contains information about the status of the IME and is used by IME Windows.
输入上下文(Input context)是一个内置结构,由IME来维护,它包含了IME窗口所使用的有关IME状态的信息。
The style and other information in the input context affects subsequent keyboard input for that window, determining whether and how the IME operates.
输入上下文中的格式(style)和其它信息会影响此窗口随后的键盘输入——决定IME是否和如何操作。
Once an input context is associated with a window, the system automatically selects that context when the window is activated and receives the input focus.
在一个输入上下文与一个窗口关联后,当窗口被激活时并且接受输入焦点时,系统会自动选择那个上下文。
Once an input context is associated with a window, the system automatically selects that context when the window is activated and receives the input focus.
在一个输入上下文与一个窗口关联后,当窗口被激活时并且接受输入焦点时,系统会自动选择那个上下文。
应用推荐