summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-29 19:35:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-29 19:35:19 +0000
commitbd15a3b73ea42d22129a06fa52e9c0fc0fe33a66 (patch)
tree785b78c75ddb9d81b0bdcd43da2a3e0f2c37fa5c /plugins
parentf0a87cbb6715f7c724114c6f289cf743b34e84e5 (diff)
unused variable declaration removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11673 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 0d6f1b884c..2a451bafd3 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -1353,14 +1353,10 @@ void TSAPI StreamInEvents(HWND hwndDlg, HANDLE hDbEventFirst, int count, int fAp
ReplaceIcons(hwndDlg, dat, startAt, fAppend, isSent);
dat->clr_added = FALSE;
- HWND hwndLog = GetDlgItem(hwndDlg, IDC_LOG);
- if (dat->hwndIEView == 0 && dat->hwndHPP == 0) {
- int len = GetWindowTextLength(hwndLog);
- SendMessage(hwndLog, EM_SETSEL, len - 1, len - 1);
- }
-
-// DM_ScrollToBottom(dat, 0, 0);
+ bool bForce = (dat->hwndIEView == 0 && dat->hwndHPP == 0);
+ DM_ScrollToBottom(dat, bForce, bForce);
+ HWND hwndLog = GetDlgItem(hwndDlg, IDC_LOG);
SendMessage(hwndLog, WM_SETREDRAW, TRUE, 0);
InvalidateRect(hwndLog, NULL, FALSE);
EnableWindow(GetDlgItem(hwndDlg, IDC_QUOTE), dat->hDbEventLast != NULL);