diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-10 18:59:55 +0600 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-02-10 16:57:56 +0100 |
commit | 25bd3e444e4f8bbe1ca83b21a76daef1695a51dc (patch) | |
tree | ce7f01961fb4b37f78ef2e5f5682e975e9ef61e5 /vcl | |
parent | 2790acbb29f8d5f180cd86d924c1e991e7d854df (diff) |
Drop obsolete handling of wheel mouse
Change-Id: I9958e69c953563285577f5cdea220371af4848d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163213
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/win/wincomp.hxx | 9 | ||||
-rw-r--r-- | vcl/win/window/salframe.cxx | 13 |
2 files changed, 1 insertions, 21 deletions
diff --git a/vcl/inc/win/wincomp.hxx b/vcl/inc/win/wincomp.hxx index 4383bc5b77cc..e326a504e35b 100644 --- a/vcl/inc/win/wincomp.hxx +++ b/vcl/inc/win/wincomp.hxx @@ -169,13 +169,4 @@ inline HINSTANCE GetWindowInstance( HWND hWnd ) return reinterpret_cast<HINSTANCE>(GetWindowLongPtrW( hWnd, GWLP_HINSTANCE )); } - -#define MOUSEZ_CLASSNAME L"MouseZ" // wheel window class -#define MOUSEZ_TITLE L"Magellan MSWHEEL" // wheel window title - -#define MSH_WHEELMODULE_CLASS (MOUSEZ_CLASSNAME) -#define MSH_WHEELMODULE_TITLE (MOUSEZ_TITLE) - -#define MSH_SCROLL_LINES L"MSH_SCROLL_LINES_MSG" - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index f1844f43da54..ed8f7fddee7a 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -719,18 +719,7 @@ const sal_uInt16 aImplTranslateKeyTab[KEY_TAB_SIZE] = static UINT ImplSalGetWheelScrollLines() { UINT nScrLines = 0; - HWND hWndMsWheel = FindWindowW( MSH_WHEELMODULE_CLASS, MSH_WHEELMODULE_TITLE ); - if ( hWndMsWheel ) - { - UINT nGetScrollLinesMsgId = RegisterWindowMessageW( MSH_SCROLL_LINES ); - nScrLines = static_cast<UINT>(SendMessageW( hWndMsWheel, nGetScrollLinesMsgId, 0, 0 )); - } - - if ( !nScrLines ) - if( !SystemParametersInfoW( SPI_GETWHEELSCROLLLINES, 0, &nScrLines, 0 ) ) - nScrLines = 0 ; - - if ( !nScrLines ) + if (!SystemParametersInfoW(SPI_GETWHEELSCROLLLINES, 0, &nScrLines, 0) || !nScrLines) nScrLines = 3; return nScrLines; |