您好我正在尝试使用以下伪代码禁用记事本上的 IME:
MakeNotepadActiveWindow();//Notepad is already open and set to Japanese IME
HWND hwnd = GetTheHWNDForNotepad();
HIMC context = ImmGetContext(hwnd);
if(context == NULL)
printf("context is null %d ",GetLastError());
上面的代码总是给我空上下文。GetLastError() 给出 0;
有人可以告诉我如何获取 InputContext