diff options
author | George Hazan <ghazan@miranda.im> | 2017-04-05 22:51:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-04-05 22:51:23 +0300 |
commit | dc38d017dab888de1e2d530b916c94989489af94 (patch) | |
tree | 838bbc3dca83ad48977025b347137646cdd318b5 /plugins/Dropbox | |
parent | dd18f0c862d73400f9ad7eacbbfad565964e6186 (diff) |
two remaining crutches removed
Diffstat (limited to 'plugins/Dropbox')
-rw-r--r-- | plugins/Dropbox/src/dropbox_utils.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
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)
|