summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-25 13:11:06 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-25 13:11:06 +0300
commit69581b8648e0c2fe96f454455763359ebeeba46a (patch)
tree524a4088b16ad99993b4ca9994ccc55b554c49db /plugins/Scriver/src
parent1acef408decb2450ce8cea52b37674f1972b9f82 (diff)
SRMM: automatic RTF log redraw on event's change/removal
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/msgdialog.cpp2
-rw-r--r--plugins/Scriver/src/msgs.h1
-rw-r--r--plugins/Scriver/src/msgutils.cpp5
3 files changed, 6 insertions, 2 deletions
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index c69bf8a266..c9d6c1869e 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -1077,7 +1077,7 @@ INT_PTR CMsgDialog::DlgProc(UINT msg, WPARAM wParam, LPARAM lParam)
case DM_REMAKELOG:
if (wParam == 0 || wParam == m_hContact)
- m_pLog->LogEvents(m_hDbEventFirst, -1, 0);
+ RemakeLog();
InvalidateRect(m_pLog->GetHwnd(), nullptr, FALSE);
break;
diff --git a/plugins/Scriver/src/msgs.h b/plugins/Scriver/src/msgs.h
index 936da01f5d..c6422300d7 100644
--- a/plugins/Scriver/src/msgs.h
+++ b/plugins/Scriver/src/msgs.h
@@ -133,6 +133,7 @@ public:
void EventAdded(MEVENT, const DB::EventInfo &dbei) override;
bool GetFirstEvent() override;
void LoadSettings() override;
+ void RemakeLog() override;
void SetStatusText(const wchar_t *, HICON) override;
void ShowFilterMenu() override;
void UpdateFilterButton() override;
diff --git a/plugins/Scriver/src/msgutils.cpp b/plugins/Scriver/src/msgutils.cpp
index e0e8cd0325..bb9da0e619 100644
--- a/plugins/Scriver/src/msgutils.cpp
+++ b/plugins/Scriver/src/msgutils.cpp
@@ -344,7 +344,10 @@ void CMsgDialog::Reattach(HWND hwndContainer)
}
}
-/////////////////////////////////////////////////////////////////////////////////////////
+void CMsgDialog::RemakeLog()
+{
+ m_pLog->LogEvents(m_hDbEventFirst, -1, 0);
+}
void CMsgDialog::SetDialogToType()
{