diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-28 15:24:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-28 15:24:55 +0300 |
commit | 67608d2587ba849bd1bb6be346efd82794197acb (patch) | |
tree | 6ef2db246e944bf607c21ef85ad8534c4a4f7d88 /plugins/Scriver/src | |
parent | 74ebc22e8446a218035cfde0fc6e147b353d8e28 (diff) |
fixes #3753 (Scriver: не видны последние сообщения)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/msgutils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Scriver/src/msgutils.cpp b/plugins/Scriver/src/msgutils.cpp index ce64dba69d..fdbeb7a117 100644 --- a/plugins/Scriver/src/msgutils.cpp +++ b/plugins/Scriver/src/msgutils.cpp @@ -99,7 +99,7 @@ void CMsgDialog::EventAdded(MEVENT hDbEvent, const DB::EventInfo &dbei) if (hDbEvent != m_hDbEventFirst && db_event_next(m_hContact, hDbEvent) == 0) m_pLog->LogEvents(hDbEvent, 1, 1); else - SendMessage(m_hwnd, DM_REMAKELOG, 0, 0); + RemakeLog(); if (!(dbei.flags & DBEF_SENT) && !dbei.isSrmm()) { if (!bIsActive) { @@ -342,11 +342,11 @@ void CMsgDialog::OnOptionsApplied() else { SetDialogToType(); - SendMessage(m_hwnd, DM_REMAKELOG, 0, 0); UpdateTabControl(); SetupInfobar(); } + ScheduleRedrawLog(); m_message.SendMsg(EM_REQUESTRESIZE, 0, 0); } @@ -607,7 +607,7 @@ void CMsgDialog::ToggleRtl() SetWindowLongPtr(m_pLog->GetHwnd(), GWL_EXSTYLE, GetWindowLongPtr(m_pLog->GetHwnd(), GWL_EXSTYLE) & ~(WS_EX_LEFTSCROLLBAR)); } m_message.SendMsg(EM_SETPARAFORMAT, 0, (LPARAM)&pf2); - SendMessage(m_hwnd, DM_REMAKELOG, 0, 0); + RemakeLog(); } void CMsgDialog::UpdateIcon() |