diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/Scriver/src/msglog.cpp | 9 | ||||
| -rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 9 |
2 files changed, 8 insertions, 10 deletions
diff --git a/plugins/Scriver/src/msglog.cpp b/plugins/Scriver/src/msglog.cpp index 891edbcbeb..6b3e777bca 100644 --- a/plugins/Scriver/src/msglog.cpp +++ b/plugins/Scriver/src/msglog.cpp @@ -665,10 +665,6 @@ public: streamData.bStripFormat = FALSE;
streamData.isFirst = bRedraw ? 1 : m_rtf.GetRichTextLength() == 0;
- EDITSTREAM stream = {};
- stream.pfnCallback = Srmm_LogStreamCallback;
- stream.dwCookie = (DWORD_PTR)&streamData;
-
SCROLLINFO scroll;
scroll.cbSize = sizeof(SCROLLINFO);
scroll.fMask = SIF_RANGE | SIF_POS | SIF_PAGE;
@@ -703,8 +699,11 @@ public: }
// stream in the event(s)
- streamData.lin = lin;
streamData.bRedraw = bRedraw;
+
+ EDITSTREAM stream = {};
+ stream.pfnCallback = Srmm_LogStreamCallback;
+ stream.dwCookie = (DWORD_PTR)&streamData;
m_rtf.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// do smileys
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index ca45b886fb..59b68b9bc5 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -1330,10 +1330,6 @@ void CLogWindow::LogEvents(LOGINFO *lin, bool bRedraw) streamData.bStripFormat = FALSE;
streamData.dat = &m_pDlg;
- EDITSTREAM stream = {};
- stream.pfnCallback = Srmm_LogStreamCallback;
- stream.dwCookie = (DWORD_PTR)&streamData;
-
POINT point = { 0 };
m_rtf.SendMsg(EM_GETSCROLLPOS, 0, (LPARAM)&point);
@@ -1365,8 +1361,11 @@ void CLogWindow::LogEvents(LOGINFO *lin, bool bRedraw) }
// stream in the event(s)
- streamData.lin = lin;
streamData.bRedraw = bRedraw;
+
+ EDITSTREAM stream = {};
+ stream.pfnCallback = Srmm_LogStreamCallback;
+ stream.dwCookie = (DWORD_PTR)&streamData;
m_rtf.SendMsg(EM_STREAMIN, wp, (LPARAM)&stream);
// for new added events, only replace in message or action events.
|
