Last active
October 13, 2016 14:40
-
-
Save chmnoh/1982efaabd637955d4679c25ce17be61 to your computer and use it in GitHub Desktop.
gvim IME patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); | |
} | |
} | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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