diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-28 13:02:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-28 13:02:13 +0300 |
commit | fe20601717b055126333f54512964edbe1d43c46 (patch) | |
tree | f7aa6af622ae93a3ad56853cfe0bcb2713cba98b /plugins | |
parent | 1ed866c2b42569ed97f0aa4ac48f7690bee37ed2 (diff) |
fixes #3948 (NewStory: скроллбар в групчатах глючит)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 28 |
1 files changed, 23 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 05a59c7509..d7f1217477 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -622,7 +622,7 @@ void NewstoryListData::RecalcScrollBar() si.fMask = SIF_ALL; si.nMin = 0; si.nMax = totalCount-1; - si.nPage = cachedMaxDrawnItem - scrollTopItem; + si.nPage = 10; si.nPos = scrollTopItem; if (cachedScrollbarPage != si.nPage || si.nPos != cachedScrollbarPos) { @@ -1237,23 +1237,41 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM switch (LOWORD(wParam)) { case SB_LINEUP: - data->LineUp(); + if (g_plugin.bHppCompat) + data->EventUp(); + else + data->LineUp(); break; + case SB_LINEDOWN: - data->LineDown(); + if (g_plugin.bHppCompat) + data->EventDown(); + else + data->LineDown(); break; + case SB_PAGEUP: - data->PageUp(); + if (g_plugin.bHppCompat) + data->EventPageUp(); + else + data->PageUp(); break; + case SB_PAGEDOWN: - data->PageDown(); + if (g_plugin.bHppCompat) + data->EventPageDown(); + else + data->PageDown(); break; + case SB_BOTTOM: data->ScrollBottom(); break; + case SB_TOP: data->ScrollTop(); break; + case SB_THUMBTRACK: SCROLLINFO si; si.cbSize = sizeof(si); |