summaryrefslogtreecommitdiff
path: root/src/core/stdmsg/src/msglog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdmsg/src/msglog.cpp')
-rw-r--r--src/core/stdmsg/src/msglog.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp
index a2250afaad..fb5b1e2fd9 100644
--- a/src/core/stdmsg/src/msglog.cpp
+++ b/src/core/stdmsg/src/msglog.cpp
@@ -436,10 +436,7 @@ void CSrmmWindow::StreamInEvents(MEVENT hDbEventFirst, int count, bool bAppend)
if (bottomScroll) {
sel.cpMin = sel.cpMax = -1;
m_log.SendMsg(EM_EXSETSEL, 0, (LPARAM)&sel);
- if (GetWindowLongPtr(m_log.GetHwnd(), GWL_STYLE) & WS_VSCROLL) {
- SendMessage(m_hwnd, DM_SCROLLLOGTOBOTTOM, 0, 0);
- PostMessage(m_hwnd, DM_SCROLLLOGTOBOTTOM, 0, 0);
- }
+ ScrollToBottom();
}
else {
m_log.SendMsg(EM_EXSETSEL, 0, (LPARAM)&oldSel);