From 3207aad442968ea10ec5e6d994840a2671726e74 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 7 Jul 2007 18:23:09 +0000 Subject: [PATCH] TrackMouseEvent remove some hard code value, thuse value are now in win32k, it is either full implement, or partly implement TrackMouseEventProc remove some hard code value, thuse value are now in win32k, it is either full implement, or partly implement svn path=/trunk/; revision=27455 --- reactos/dll/win32/user32/windows/input.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/reactos/dll/win32/user32/windows/input.c b/reactos/dll/win32/user32/windows/input.c index f02e72bce16..1c1f7d7de56 100644 --- a/reactos/dll/win32/user32/windows/input.c +++ b/reactos/dll/win32/user32/windows/input.c @@ -686,16 +686,8 @@ static void CALLBACK TrackMouseEventProc(HWND hwndUnused, UINT uMsg, UINT_PTR id GetCursorPos(&pos); hwnd = WindowFromPoint(pos); - /* FIXME WIN32k does not support SPI_GETMOUSEHOVERWIDTH and SPI_GETMOUSEHOVERHEIGHT - * SystemParametersInfoW(SPI_GETMOUSEHOVERWIDTH, 0, &hoverwidth, 0); - * SystemParametersInfoW(SPI_GETMOUSEHOVERHEIGHT, 0, &hoverheight, 0); - */ - - /* FIXME hack until win32k support SPI_GETMOUSEHOVERWIDTH and SPI_GETMOUSEHOVERHEIGHT - * it take care of some program that does not working - */ - hoverwidth = 4; - hoverheight = 4; + SystemParametersInfoW(SPI_GETMOUSEHOVERWIDTH, 0, &hoverwidth, 0); + SystemParametersInfoW(SPI_GETMOUSEHOVERHEIGHT, 0, &hoverheight, 0); /* see if this tracking event is looking for TME_LEAVE and that the */ /* mouse has left the window */ @@ -846,12 +838,7 @@ TrackMouseEvent( /* if HOVER_DEFAULT was specified replace this with the systems current value */ if (hover_time == HOVER_DEFAULT || hover_time == 0) { - /* FIXME SPI_GETMOUSEHOVERTIME are not implement in win32k - * SystemParametersInfoW(SPI_GETMOUSEHOVERTIME, 0, &hover_time, 0); - */ - - /* FIXME Hack until SPI_GETMOUSEHOVERTIME are implement some program need this being set to working */ - hover_time = 400; + SystemParametersInfoW(SPI_GETMOUSEHOVERTIME, 0, &hover_time, 0); } GetCursorPos(&pos);