没有合适的资源?快使用搜索试试~ 我知道了~
Win32 Multilingual IME Application Programming Interfac
5星 · 超过95%的资源 需积分: 9 29 下载量 55 浏览量
2014-06-08
08:16:58
上传
评论
收藏 195KB DOC 举报
温馨提示
试读
64页
Win32 Multilingual IME Application Programming Interface 很难找的IME 输入法编程文档 ,废了牛劲找到了,想写输入法的必备~!
资源推荐
资源详情
资源评论
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页未读,继续阅读
资源评论
- kayvid2015-05-31终于找到了!謝謝分享!!
- cgdvw2018-01-24感谢分享,开发IME必备资料
- CUnknow2015-12-10还不错的视频,很有用
michael_cat
- 粉丝: 1
- 资源: 75
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功