Skip to content

Instantly share code, notes, and snippets.

@chmnoh
Last active October 13, 2016 14:40
Show Gist options
  • Save chmnoh/1982efaabd637955d4679c25ce17be61 to your computer and use it in GitHub Desktop.
Save chmnoh/1982efaabd637955d4679c25ce17be61 to your computer and use it in GitHub Desktop.
gvim IME patch
// if press ESC, change mode to ENG
...
if (msg.message == WM_KEYDOWN || msg.message == WM_SYSKEYDOWN)
{
vk = (int) msg.wParam;
if (vk == VK_ESCAPE) {
HIMC hImc = ImmGetContext(s_hwnd);
if (ImmGetOpenStatus(hImc)) {
ImmSetConversionStatus(hImc, IME_CMODE_ALPHANUMERIC, IME_SMODE_NONE);
ImmReleaseContext(s_hwnd, hImc);
}
}
...
nmake -f Make_mvc.mak GUI=yes OLE=yes MBYTE=yes IME=yes CSCOPE=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment