From dc38d017dab888de1e2d530b916c94989489af94 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 5 Apr 2017 22:51:23 +0300 Subject: two remaining crutches removed --- plugins/TranslitSwitcher/src/Layoutproc.cpp | 4 +--- plugins/TranslitSwitcher/src/stdafx.h | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'plugins/TranslitSwitcher') diff --git a/plugins/TranslitSwitcher/src/Layoutproc.cpp b/plugins/TranslitSwitcher/src/Layoutproc.cpp index 043ccf20b4..e36052669f 100644 --- a/plugins/TranslitSwitcher/src/Layoutproc.cpp +++ b/plugins/TranslitSwitcher/src/Layoutproc.cpp @@ -652,9 +652,7 @@ int OnButtonPressed(WPARAM, LPARAM lParam) else return 0; - HWND hEdit = GetDlgItem(cbcd->hwndFrom, IDC_MESSAGE); - if (!hEdit) - hEdit = GetDlgItem(cbcd->hwndFrom, IDC_CHATMESSAGE); + HWND hEdit = GetDlgItem(cbcd->hwndFrom, IDC_SRMM_MESSAGE); BYTE byKeybState[256]; GetKeyboardState(byKeybState); diff --git a/plugins/TranslitSwitcher/src/stdafx.h b/plugins/TranslitSwitcher/src/stdafx.h index 3d6e3ee724..fd6e7cd3c7 100644 --- a/plugins/TranslitSwitcher/src/stdafx.h +++ b/plugins/TranslitSwitcher/src/stdafx.h @@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. #include #include #include +#include #include #include @@ -39,9 +40,6 @@ Boston, MA 02111-1307, USA. #include "version.h" #include "resource.h" -#define IDC_MESSAGE 1002 -#define IDC_CHATMESSAGE 1009 - VOID SwitchLayout(bool); VOID TranslitLayout(bool); VOID InvertCase(bool); -- cgit v1.2.3