diff options
author | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:06 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2013-08-05 20:37:06 +0000 |
commit | 7422120014b51f0057bb41b3e9b6405957a01b63 (patch) | |
tree | 2a56e09275b9e9e75f8be57f4ca1c0b7d39ee3c3 /src/console_gui.cpp | |
parent | 13873d2534208ddc4596a9354d23d1e4940339ac (diff) | |
download | openttd-7422120014b51f0057bb41b3e9b6405957a01b63.tar.xz |
(svn r25679) -Codechange: [Win32] Get the result string of an IME input directly without a trip through the window messaging system.
Diffstat (limited to 'src/console_gui.cpp')
-rw-r--r-- | src/console_gui.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/console_gui.cpp b/src/console_gui.cpp index ce23952d2..0cc2f670e 100644 --- a/src/console_gui.cpp +++ b/src/console_gui.cpp @@ -308,6 +308,15 @@ struct IConsoleWindow : Window return ES_HANDLED; } + virtual void InsertTextString(int wid, const char *str) + { + if (_iconsole_cmdline.InsertString(str)) { + IConsoleWindow::scroll = 0; + IConsoleResetHistoryPos(); + this->SetDirty(); + } + } + virtual void OnMouseWheel(int wheel) { this->Scroll(-wheel); |