[Libreoffice-commits] core.git: vcl/inc vcl/win
Noel Grandin
noel at peralex.com
Wed Apr 13 10:52:06 UTC 2016
vcl/inc/win/saldata.hxx | 1 -
vcl/win/window/salframe.cxx | 36 ------------------------------------
2 files changed, 37 deletions(-)
New commits:
commit 32102b9aa75a296b99f3fdaf370bd83bfd629f4e
Author: Noel Grandin <noel at peralex.com>
Date: Wed Apr 13 09:45:32 2016 +0200
remove Windows95 MouseWheel support
since we no longer support Windows95
Change-Id: I6b2fe5fdb2cde3c69fc0d18bcaac25afccbffc16
Reviewed-on: https://gerrit.libreoffice.org/24049
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/vcl/inc/win/saldata.hxx b/vcl/inc/win/saldata.hxx
index 66b8a7f..c921514 100644
--- a/vcl/inc/win/saldata.hxx
+++ b/vcl/inc/win/saldata.hxx
@@ -135,7 +135,6 @@ struct SalShlData
HINSTANCE mhInst; // Instance of SAL-DLL
UINT mnWheelScrollLines; // WheelScrollLines
UINT mnWheelScrollChars; // WheelScrollChars
- UINT mnWheelMsgId; // Wheel-Message-Id fuer W95
BOOL mbWXP; // Windows XP
BOOL mbWVista; // Windows Vista
BOOL mbW7; // Windows 7
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 7a6f5c6..ad2693e 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -880,8 +880,6 @@ WinSalFrame::WinSalFrame()
// get data, when making 1st frame
if ( !pSalData->mpFirstFrame )
{
- if ( !aSalShlData.mnWheelMsgId )
- aSalShlData.mnWheelMsgId = RegisterWindowMessage( MSH_MOUSEWHEEL );
if ( !aSalShlData.mnWheelScrollLines )
aSalShlData.mnWheelScrollLines = ImplSalGetWheelScrollLines();
if ( !aSalShlData.mnWheelScrollChars )
@@ -5892,40 +5890,6 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
break;
}
- // catch WheelMouse-Message
- if ( rDef && (nMsg == aSalShlData.mnWheelMsgId) && aSalShlData.mnWheelMsgId )
- {
- // protect against recursion, in case the message is returned
- // by IE or the external window
- if ( !bInWheelMsg )
- {
- bInWheelMsg++;
- // First dispatch the message; and then give the SystemWindow a turn
- WORD nKeyState = 0;
- if ( GetKeyState( VK_SHIFT ) & 0x8000 )
- nKeyState |= MK_SHIFT;
- if ( GetKeyState( VK_CONTROL ) & 0x8000 )
- nKeyState |= MK_CONTROL;
- // Mutex handling is inside from this call
- rDef = !ImplHandleWheelMsg( hWnd,
- WM_MOUSEWHEEL,
- MAKEWPARAM( nKeyState, (WORD)wParam ),
- lParam );
- if ( rDef )
- {
- HWND hWheelWnd = ::GetFocus();
- if ( hWheelWnd && (hWheelWnd != hWnd) )
- {
- nRet = SendMessageW( hWheelWnd, nMsg, wParam, lParam );
- rDef = FALSE;
- }
- else
- rDef = ImplSalWheelMousePos( hWnd, nMsg, wParam, lParam, nRet );
- }
- bInWheelMsg--;
- }
- }
-
if( bCheckTimers )
{
SalData* pSalData = GetSalData();
More information about the Libreoffice-commits
mailing list