comctl32/listview: New hover value should be passed using LPARAM.
This commit is contained in:
parent
ea058d22ba
commit
78e7b3cf9c
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue