diff options
| author | George Hazan <ghazan@miranda.im> | 2020-03-30 21:58:30 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2020-03-30 21:58:37 +0300 |
| commit | e8096c13782500587c1396d0c296cdddee10089b (patch) | |
| tree | 47190e230d8f4ed7b7ff228e081fd216fc6674a4 | |
| parent | a15f50b4c12e457e8afc72aacf225ffce0a34f5c (diff) | |
fixes #2278 (TabSRMM cannot drop file to input area)
| -rw-r--r-- | plugins/Scriver/src/msgdialog.cpp | 2 | ||||
| -rw-r--r-- | src/mir_app/src/srmm_base.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index f119bc4458..6ad1230ffe 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -259,8 +259,6 @@ bool CMsgDialog::OnInitDialog() m_message.SendMsg(EM_EXLIMITTEXT, 0, nMax);
}
- // get around a lame bug in the Windows template resource code where richedits are limited to 0x7FFF
- ::DragAcceptFiles(m_message.GetHwnd(), TRUE);
CreateInfobar();
if (isChat()) {
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index f3649b9867..d835c3f8bf 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -459,6 +459,7 @@ bool CSrmmBaseDialog::OnInitDialog() SetWindowLongPtr(m_message.GetHwnd(), GWLP_USERDATA, LPARAM(this)); mir_subclassWindow(m_message.GetHwnd(), stubMessageProc); m_message.SetReadOnly(false); + ::DragAcceptFiles(m_message.GetHwnd(), TRUE); if (isChat()) { SetWindowLongPtr(m_nickList.GetHwnd(), GWLP_USERDATA, LPARAM(this)); |
