From 16dae6bd7df08d11cf9175239fb9b27f88c6f12c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 2 Aug 2023 14:11:40 +0300 Subject: =?UTF-8?q?fixes=20#2373=20(NewStory:=20=D0=BD=D0=B5=20=D1=80?= =?UTF-8?q?=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D1=8E=D1=82=20=D1=84=D0=B8=D0=BB?= =?UTF-8?q?=D1=8C=D1=82=D1=80=D1=8B)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/IEView/src/ieview_logger.cpp | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/ieview_logger.cpp b/plugins/IEView/src/ieview_logger.cpp index 5ab19373d0..20391f34a3 100644 --- a/plugins/IEView/src/ieview_logger.cpp +++ b/plugins/IEView/src/ieview_logger.cpp @@ -27,13 +27,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ///////////////////////////////////////////////////////////////////////////////////////// // CIeviewLogWindow class -class CIeviewLogWindow : public CSrmmLogWindow +class CIeviewLogWindow : public CSimpleLogWindow { HWND m_hwnd = nullptr; public: CIeviewLogWindow(CMsgDialog &pDlg) : - CSrmmLogWindow(pDlg) + CSimpleLogWindow(pDlg) { } @@ -105,7 +105,7 @@ public: //////////////////////////////////////////////////////////////////////////////////////// - void LogEvent(const LOGINFO *lin) + void LogChatEvent(const LOGINFO &lin) override { IEVIEWEVENTDATA ied = {}; ied.dwFlags = IEEDF_UNICODE_NICK; @@ -118,12 +118,12 @@ public: event.eventData = &ied; event.count = 1; - ied.szNick.w = lin->ptszNick; - ied.szText.w = lin->ptszText; - ied.time = lin->time; - ied.bIsMe = lin->bIsMe; + ied.szNick.w = lin.ptszNick; + ied.szText.w = lin.ptszText; + ied.time = lin.time; + ied.bIsMe = lin.bIsMe; - switch (lin->iType) { + switch (lin.iType) { case GC_EVENT_MESSAGE: ied.iType = IEED_GC_EVENT_MESSAGE; ied.dwData = IEEDD_GC_SHOW_NICK; @@ -167,19 +167,7 @@ public: ied.dwFlags = IEEDF_UNICODE_TEXT | IEEDF_UNICODE_NICK; HandleIEEvent(0, LPARAM(&event)); } - - void LogEvents(const LOGINFO *lin) override - { - if (lin == nullptr) { - for (auto &it : m_pDlg.getChat()->arEvents) - LogEvent(it); - } - else LogEvent(lin); - - if (lin) - ScrollToBottom(); - } - + void Resize() override { RECT rcRichEdit; -- cgit v1.2.3