Altered WM_MOUSEHOVER so the lParam and wParam fields are set

correctly to virtual key states and cursor position.
This commit is contained in:
Mike Hearn 2002-11-23 01:12:17 +00:00 committed by Alexandre Julliard
parent b31af31cbf
commit 43a0a51540
1 changed files with 2 additions and 1 deletions

View File

@ -972,7 +972,8 @@ static void CALLBACK TrackMouseEventProc(HWND hwndUnused, UINT uMsg, UINT_PTR id
/* has the mouse hovered long enough? */
if(TrackingList[i].iHoverTime <= TrackingList[i].tme.dwHoverTime)
{
PostMessageA(TrackingList[i].tme.hwndTrack, WM_MOUSEHOVER, 0, 0);
PostMessageW(TrackingList[i].tme.hwndTrack, WM_MOUSEHOVER,
get_key_state(), MAKELPARAM( pos.x, pos.y ));
/* stop tracking mouse hover */
TrackingList[i].tme.dwFlags ^= TME_HOVER;