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

Alexandre Julliard julliard at winehq.org
Mon Nov 30 10:42:49 CST 2009


Module: wine
Branch: master
Commit: 78e7b3cf9c9b03544e8ac367bf247306b7469052
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=78e7b3cf9c9b03544e8ac367bf247306b7469052

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sat Nov 28 11:50:30 2009 +0300

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

---

 dlls/comctl32/listview.c       |    2 +-
 dlls/comctl32/tests/listview.c |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 97bf05a..8f6db54 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -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));
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 0b55a23..8e2d9d5 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -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);
 }
 




More information about the wine-cvs mailing list