diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 04:23:01 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-12-14 04:23:01 +0000 |
commit | 850259c4eab1a77d973af51cd3bd62fbbd09f591 (patch) | |
tree | 7c3cf2435324cef4517210217689540e15fe8419 /plugins/TranslitSwitcher/src/Layoutproc.cpp | |
parent | 7e97bbad5f31058886766c569303a0da648cbe92 (diff) |
SendMessage(... WM_GETTEXT ...) -> GetWindowText(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11389 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TranslitSwitcher/src/Layoutproc.cpp')
-rw-r--r-- | plugins/TranslitSwitcher/src/Layoutproc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 30cdbba865..835b1c8063 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -390,7 +390,7 @@ void SwitchLayout(bool lastword) TCHAR *selected = (TCHAR *)CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&event);
mir_tstrncpy(buf, selected, SIZEOF(buf));
}
- else SendMessage(hwnd2, WM_GETTEXT, SIZEOF(buf), (LPARAM)buf); // gimme, gimme, gimme...
+ else GetWindowText(hwnd2, buf, SIZEOF(buf)); // gimme, gimme, gimme...
size_t slen = _tcslen(buf);
if (slen != 0) {
|