Article ID: 171154
Article Last Modified on 11/21/2006
HIMC hIMC;
hIMC = ImmAssociateContext(hWnd, NULL); // It makes IME disable for
// hWnd window.
// Then you can do whatever you want without IME.
ImmAssociateContext(hWnd, hIMC); // If you want to enable
// IME again, then you can
// use the previous stored IME
// context(hIMC)
// to restore IME.
This method will not work on Windows 3.1 and Windows NT 3.5. You can use
WinnlsEnableIME()for these systems, but this function will enable/disable
the whole system IME, not just for a specific window.
Keywords: kbhowto kbintldev kbcode kbusage KB171154