![]() |
|
QA: How can I set the qwerty keyboard as the current input method?
By Yaroslav Goncharov, November 09, 2001.
QuestionMy application needs to set qwerty keyboard as current input method. How can I do it? AnswerYou can use SipSetCurrentIM(CLSID *pClsid)method to set current input method. Now we need to find class id for qwerty keyboard. The following source code sets qwerty keyboard as current input method. However, this solution is not perfect. Lets imagine the situation when there is no qwerty keyboard in the system or modern keyboard replaces default one. MSDN says If the SIP is unable to load the IM, the default IM is loaded in its place. But in fact, system can have unpredictable behavior in this situation. For instance, Cassiopeia E-125 will deselect current IM and user will not see SIP panel in response on SIP button mouse click. The following method solves this problem. Related resources:
DiscussDiscuss this article. Here you can write your comments and read comments of other developers. |
|||||||||||||||||||||