Hi I am trying to disable the IME on notepad using the following psuedo code:
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());
and the above code is always giving me the null context. GetLastError() gives 0;
Could somebody tell me how to get the InputContext