diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-29 09:26:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-29 09:26:02 +0000 |
commit | c5d063641ee1d9e0a4ca9872fbc4d1578731d9a6 (patch) | |
tree | eb77a34e1690eee9d65d36f9feab233f72eac5cc /plugins/TabSRMM/src/msgdialog.cpp | |
parent | bd276bf08cc7ae0c2c9be6b0c202047fede7c704 (diff) |
unused DM_FORCESCROLL removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@11666 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index ef2e85a2d3..8f0d33b4f4 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2350,26 +2350,6 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP } return 0; - case DM_FORCESCROLL: - if (wParam == 0 && lParam == 0) - DM_ScrollToBottom(dat, 0, 1); - else { - SCROLLINFO *psi = (SCROLLINFO*)lParam; - POINT *ppt = (POINT*)wParam; - - 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); - } - - if (psi == NULL || psi->nPos >= psi->nMax - (int)psi->nPage - 5 || psi->nMax - psi->nMin - (int)psi->nPage < 50) - DM_ScrollToBottom(dat, 0, 0); - else - SendMessage((dat->hwndIEView || dat->hwndHPP) ? (dat->hwndIEView ? dat->hwndIEView : dat->hwndHPP) : hwndLog, EM_SETSCROLLPOS, 0, (LPARAM)ppt); - } - return 0; - case HM_DBEVENTADDED: // this is called whenever a new event has been added to the database. // this CAN be posted (some sanity checks required). @@ -2552,7 +2532,7 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP else { SendMessage(hwndDlg, WM_SIZE, 0, 0); if (lParam == 0) - PostMessage(hwndDlg, DM_FORCESCROLL, 0, 0); + DM_ScrollToBottom(dat, 0, 1); } return 0; |