From b4d51bb6ad3872b22d3ea52949d4cc5842c26da3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Sep 2019 20:49:45 +0300 Subject: - more shit cleared from C++ code; - Pascal code partially restored till the full container log implementation --- plugins/Scriver/src/msglog.cpp | 4 +--- plugins/Scriver/src/msgutils.cpp | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/Scriver') diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 02224330c0..087a78859a 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -631,7 +631,6 @@ void CMsgDialog::StreamInEvents(MEVENT hDbEventFirst, int count, int bAppend) // IEVIew MOD Begin if (m_hwndIeview != nullptr) { IEVIEWEVENT evt; - IEVIEWWINDOW ieWindow = {}; evt.dwFlags = (m_bUseRtl) ? IEEF_RTL : 0; evt.hwnd = m_hwndIeview; evt.hContact = m_hContact; @@ -646,8 +645,7 @@ void CMsgDialog::StreamInEvents(MEVENT hDbEventFirst, int count, int bAppend) CallService(MS_IEVIEW_EVENT, 0, (LPARAM)&evt); m_hDbEventLast = evt.hDbEventFirst != 0 ? evt.hDbEventFirst : m_hDbEventLast; - memset(&ieWindow, 0, sizeof(ieWindow)); - ieWindow.cbSize = sizeof(ieWindow); + IEVIEWWINDOW ieWindow = {}; ieWindow.iType = IEW_SCROLLBOTTOM; ieWindow.hwnd = m_hwndIeview; CallService(MS_IEVIEW_WINDOW, 0, (LPARAM)&ieWindow); diff --git a/plugins/Scriver/src/msgutils.cpp b/plugins/Scriver/src/msgutils.cpp index d69eb28703..34bde9dbdc 100644 --- a/plugins/Scriver/src/msgutils.cpp +++ b/plugins/Scriver/src/msgutils.cpp @@ -221,8 +221,7 @@ void CMsgDialog::Reattach(HWND hwndContainer) void CMsgDialog::ScrollToBottom() { if (m_hwndIeview != nullptr) { - IEVIEWWINDOW ieWindow; - ieWindow.cbSize = sizeof(IEVIEWWINDOW); + IEVIEWWINDOW ieWindow = {}; ieWindow.iType = IEW_SCROLLBOTTOM; ieWindow.hwnd = m_hwndIeview; CallService(MS_IEVIEW_WINDOW, 0, (LPARAM)&ieWindow); -- cgit v1.2.3