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/Dropbox/src/dropbox_utils.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'plugins/Dropbox') diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index 6da10ae8b3..cd71d187f7 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -116,13 +116,7 @@ void CDropbox::SendToContact(MCONTACT hContact, const wchar_t *data) void CDropbox::PasteToInputArea(MCONTACT hContact, const wchar_t *data) { - MessageWindowData mwd; - if (!Srmm_GetWindowData(hContact, mwd)) { - HWND hEdit = GetDlgItem(mwd.hwndWindow, 1002 /*IDC_MESSAGE*/); - if (!hEdit) hEdit = GetDlgItem(mwd.hwndWindow, 1009 /*IDC_CHATMESSAGE*/); - - SendMessage(hEdit, EM_REPLACESEL, TRUE, (LPARAM)data); - } + CallService(MS_MSG_SENDMESSAGEW, hContact, (LPARAM)data); } void CDropbox::PasteToClipboard(const wchar_t *data) -- cgit v1.2.3