comctl32/listview: New hover value should be passed using LPARAM.

This commit is contained in:
Nikolay Sivov 2009-11-28 11:50:30 +03:00 committed by Alexandre Julliard
parent ea058d22ba
commit 78e7b3cf9c
2 changed files with 6 additions and 1 deletions

View File

@ -11134,7 +11134,7 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return LISTVIEW_SetHotItem(infoPtr, (INT)wParam);
case LVM_SETHOVERTIME:
return LISTVIEW_SetHoverTime(infoPtr, (DWORD)wParam);
return LISTVIEW_SetHoverTime(infoPtr, (DWORD)lParam);
case LVM_SETICONSPACING:
return LISTVIEW_SetIconSpacing(infoPtr, (short)LOWORD(lParam), (short)HIWORD(lParam));

View File

@ -4277,6 +4277,11 @@ static void test_hover(void)
ok_sequence(sequences, PARENT_SEQ_INDEX, hover_parent, "NM_HOVER block test", TRUE);
g_block_hover = FALSE;
r = SendMessage(hwnd, LVM_SETHOVERTIME, 0, 500);
expect(HOVER_DEFAULT, r);
r = SendMessage(hwnd, LVM_GETHOVERTIME, 0, 0);
expect(500, r);
DestroyWindow(hwnd);
}