没有合适的资源?快使用搜索试试~ 我知道了~
首页Win32 Multilingual IME Application Programming Interfac
资源详情
资源评论
资源推荐
1
Win32 Multilingual IME Application
Programming Interface
Version 1.32
04-01-1998
This documentation contains the application programming interface
reference for Input Method Editor (IME)development. The following
functions are intended to be used by the IME.
IMM UI Functions
Following are the Input Method Manager (IMM) functions that can be
accessed from the UI window. They are also used by applications to
change IME status.
ImmGetCompositionWindow
ImmSetCompositionWindow
ImmGetCandidateWindow
ImmSetCandidateWindow
ImmGetCompositionString
ImmSetCompositionString
ImmGetCompositionFont
ImmSetCompositionFont
ImmGetNumCandidateList
ImmGetCandidateList
ImmGetGuideLine
ImmGetConversionStatus
ImmGetConversionList
ImmGetOpenStatus
ImmSetConversionStatus
ImmSetOpenStatus
ImmNotifyIME
ImmCreateSoftKeyboard
ImmDestroySoftkeyboard
ImmShowSoftKeyboard
2 Win32 Multilingual IME Application Programming Interface
Please refer to the Input Method Editor (IME) functions in the Platform SDK
for information about these functions.
IMM Support Functions
The following topics contain IMM functions that support and are used by the
IME.
ImmGenerateMessage
The IME uses the ImmGenerateMessage function to send messages to
the hWnd of hIMC. The messages to be sent are stored in hMsgBuf of
hIMC.
BOOL WINAPI
ImmGenerateMessage(
HIMC hIMC
)
Parameters
hIMC
Input context handle containing hMsgBuf.
Return Values
If the function is successful, the return value is TRUE. Otherwise, the return
value is FALSE.
Comments
This is a general purpose function. Typically, an IME uses this function
when it is notified about the context update through ImmNotifyIME from
IMM. In this case, even if IME needs to provide messages to an
application, there is no keystroke in the application’s message queue.
An IME User Interface should not use this function when it only wants to
update the UI appearance. The IME User Interface should have been
updated when the IME is informed about the updated Input Context. It is
recommended that you use this function from the IME only when the IME
changes the Input Context without any keystroke given and needs to inform
an application of the change.
Filename: raw.DOC Project: Win32 IME Spec
Revision #: 3 Page: 2 of 65 Printed: 02/08/96 02:55 PM!Unexpected End of Expression
Win32 Multilingual IME Application Programming Interface 3
ImmRequestMessage
The ImmRequestMessage function is used to send a
WM_IME_REQUEST message to the application.
LRESULT WINAPI
ImmRequestMessage(
HIMC hIMC,
WPARAM wParam,
LPARAM lParam
)
Parameters
hIMC
Target input context handle.
wParam
wParam for the WM_IME_REQUEST message.
lParam
lParam for the WM_IME_REQUEST message.
Return Values
The return value is the return value of the WM_IME_REQUEST message.
Comments
This function is new for Windows® 98 and Window 2000, and is used by the
IME to send a WM_IME_REQUEST message to the application. The IME
may want to obtain some guidelines from the application in defining the
position of the candidate or composition window. But in an IME fully aware
(true in-line) application, the application usually does not set the
composition window position. When the IME makes a request to the
application, it receives the WM_IME_REQUEST message. The IME should
make a request to the application by calling the ImmRequestMessage
function and not by calling SendMessage
The following is a list of submessages that the IME can send to applications
through the ImmRequestMessage function:
IMR_COMPOSITIONWINOW
IMR_CANDIDATEWINDOW
IMR_COMPOSITIONFONT
IMR_RECONVERTSTRING
Filename: raw.DOC Project: Win32 IME Spec
Template: Author: K.Enos Last Saved By: K.Enos
Revision #: 3 Page: 3 of 65 Printed: 02/08/96 02:55 PM!Unexpected End of Expression
4 Win32 Multilingual IME Application Programming Interface
IMR_CONFIRMRECONVERTSTRING
IMR_QUERYCHARPOSITION
IMR_DOCUMENTFEED
Please refer to the Input Method Editor (IME) functions in the Platform SDK
for information about these messages.
HIMC and HIMCC Management Functions
The following topics contain the HIMC and HIMCC management functions.
ImmLockIMC
The ImmLockIMC function increases the lock count for the IMC. When the
IME needs to see the INPUTCONTEXT structure, it calls this function to
get the pointer of the INPUTCONTEXT structure.
LPINPUTCONTEXT WINAPI
ImmLockIMC(
HIMC hIMC
)
Parameters
hIMC
Input context handle.
Return Values
If the function is successful, it returns a pointer to the INPUTCONTEXT
structure. Otherwise, it returns NULL.
ImmUnlockIMC
The ImmUnlockIMC function decrements the lock count for the IMC.
BOOL WINAPI
ImmUnlockIMC(
HIMC hIMC
)
Parameters
Filename: raw.DOC Project: Win32 IME Spec
Revision #: 3 Page: 4 of 65 Printed: 02/08/96 02:55 PM!Unexpected End of Expression
Win32 Multilingual IME Application Programming Interface 5
hIMC
Input context handle.
Return Values
If the lock count of the IMC is decremeted to zero, the return value is
FALSE. Otherwise, the return value is TRUE.
ImmGetIMCLockCount
The ImmGetIMCLockCount is used to get the lock count of the IMC.
HIMCC WINAPI
ImmGetIMCLockCount(
HIMC hIMC
)
Parameters
hIMC
Input context handle
Return Values
If the function is successful, the return value is the lock count of the IMC.
Otherwise, the return value is NULL.
ImmCreateIMCC
The ImmCreateIMCC function creates a new component as a member of
the IMC.
HIMCC WINAPI
ImmCreateIMCC(
DWORD dwSize
)
Parameters
dwSize
Size of the new IMC component.
Return Values
Filename: raw.DOC Project: Win32 IME Spec
Template: Author: K.Enos Last Saved By: K.Enos
Revision #: 3 Page: 5 of 65 Printed: 02/08/96 02:55 PM!Unexpected End of Expression
剩余63页未读,继续阅读
michael_cat
- 粉丝: 1
- 资源: 75
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论3