mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 02:37:06 +00:00
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
This commit is contained in:
parent
52dc4e8d79
commit
3207aad442
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue