console2 支持中文输入(new)
在网上看了很多人说这个软件不能输入中文.自己用了一下,不能输入中文是很不爽,小子就下了一个最新的源码,改了两行代码就可以了. 希望大家下载使用. 文件: ConsoleView.cpp 函数: BOOL ConsoleView::PreTranslateMessage(MSG* pMsg) { if ((pMsg->message == WM_KEYDOWN) || (pMsg->message == WM_KEYUP) || (pMsg->message == WM_SYSKEYDOWN) || (pMsg->message == WM_SYSKEYUP)) { // Avoid calling ::TranslateMessage for WM_KEYDOWN, WM_KEYUP, // WM_SYSKEYDOWN and WM_SYSKEYUP (except for wParam == VK_PACKET, // which is sent by SendInput when pasting text). /// // This prevents WM_CHAR and W M_SYSCHAR messages, enabling stuff like // handling 'dead' characters input and passing all keys to console. if (pMsg->wParam == VK_PACKET) return FALSE; //::DispatchMessage(pMsg); //原代码行 //添加输入中文功能: begin ::TranslateMessage(pMsg); if(!::PeekMessage(pMsg, NULL, 0, 0, PM_NOREMOVE)) ::DispatchMessage(pMsg); //添加输入中文功能: end return TRUE; } return FALSE; } M_SYSCHAR messages, enabling stuff like // handling 'dead' characters input and passing all keys to console. if (pMsg->wParam == VK_PACKET) return FALSE; //::DispatchMessage(pMsg); //原代码行 //添加输入中文功能: begin ::TranslateMessage(pMsg); if(!::PeekMessage(pMsg, NULL, 0, 0, PM_NOREMOVE)) ::DispatchMessage(pMsg); //添加输入中文功能: end return TRUE; } return FALSE; }
文件列表
Console2.zip
(预估有个10文件)
Console2
输入法高级文字服务(TSF).bmp
898KB
console.xml
6KB
FreeImagePlus.dll
86KB
regedit.reg
263B
ConsoleHook.dll
222KB
Console.old.exe
742KB
说明.txt
69B
FreeImage.dll
2.35MB
console.chm
117KB
用户评论