From f5ad379cdf9f65700745114fcb8d692260ca6015 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2018 21:32:24 +0300 Subject: fixes #1413 (Miranda 0.95.8.1 Scriver Log doesn't work anymore) --- plugins/Scriver/src/msgdialog.cpp | 4 ++++ plugins/Scriver/src/msglog.cpp | 2 +- plugins/Scriver/src/msgs.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp index 85ca800e88..4fe31d082e 100644 --- a/plugins/Scriver/src/msgdialog.cpp +++ b/plugins/Scriver/src/msgdialog.cpp @@ -1380,6 +1380,10 @@ INT_PTR CSrmmWindow::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam) } return TRUE; + case DM_SCROLLLOGTOBOTTOM: + ScrollToBottom(); + return 0; + case DM_REMAKELOG: m_lastEventType = -1; if (wParam == 0 || wParam == m_hContact) diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 8281b6f4df..fdc59bc513 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -836,7 +836,7 @@ void CSrmmWindow::StreamInEvents(MEVENT hDbEventFirst, int count, int fAppend) m_log.SendMsg(WM_SETREDRAW, TRUE, 0); m_hDbEventLast = streamData.hDbEventLast; - ScrollToBottom(); + PostMessage(m_hwnd, DM_SCROLLLOGTOBOTTOM, 0, 0); } #define RTFPICTHEADERMAXSIZE 78 diff --git a/plugins/Scriver/src/msgs.h b/plugins/Scriver/src/msgs.h index 988499f21a..eb3754974f 100644 --- a/plugins/Scriver/src/msgs.h +++ b/plugins/Scriver/src/msgs.h @@ -239,6 +239,7 @@ public: #define DM_OPTIONSAPPLIED (WM_USER+14) #define DM_APPENDTOLOG (WM_USER+17) #define DM_ERRORDECIDED (WM_USER+18) +#define DM_SCROLLLOGTOBOTTOM (WM_USER+19) #define DM_TYPING (WM_USER+20) #define DM_UPDATELASTMESSAGE (WM_USER+22) #define DM_USERNAMETOCLIP (WM_USER+23) -- cgit v1.2.3