IME输入法编程
第二章 输入法的函数简介
下面我们将介绍第一章各个函数的功能及接口格式。
1.BOOL
ImeInquire( //初始化输入法
LPIMEINFO lpIMEInfo, //Pointer to the IME info structure.
LPTSTR lpszWndClass,//IME UI窗口名
DWORD dwSystemInfoFlags //Varying system information provided by the system
)
如果该函数初始化成功,返回TURE,否则为FALSE
用户应该搞清楚IMEINFO结构,特关系着你设计的输入法是否成功.
2.BOOL ImeSelect( //初始化输入法
HIMC hIMC, //当前应用程序句柄
BOOL fSelect //是否初始化当前输入法,TRUE表示初始化
)
The ImeSelect function is used to initialize and uninitialize the IME private context.
3.BOOL NotifyIME( //输入法选择窗口状态管理函数:
HIMC hIMC, //当前的应用程序句柄
DWORD dwAction, //状态值
DWORD dwIndex, //与状态值有关的序号
DWORD dwValue //与状态值有关的值
)
The NotifyIME function changes the status of the IME according to the given parameters.