Nikolay Sivov : comctl32/tests: Don' t use magic numbers for ListView exstyles.

Alexandre Julliard julliard at winehq.org
Mon May 18 08:13:16 CDT 2009


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

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Sun May 17 23:47:38 2009 +0400

comctl32/tests: Don't use magic numbers for ListView exstyles.

---

 dlls/comctl32/tests/listview.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 6386655..0c6b139 100644
--- a/dlls/comctl32/tests/listview.c
+++ b/dlls/comctl32/tests/listview.c
@@ -410,7 +410,9 @@ static void test_images(void)
                 10, 10, 100, 200, hwndparent, NULL, NULL, NULL);
     ok(hwnd != NULL, "failed to create listview window\n");
 
-    r = SendMessage(hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, 0x940);
+    r = SendMessage(hwnd, LVM_SETEXTENDEDLISTVIEWSTYLE, 0,
+                    LVS_EX_UNDERLINEHOT | LVS_EX_FLATSB | LVS_EX_ONECLICKACTIVATE);
+
     ok(r == 0, "should return zero\n");
 
     r = SendMessage(hwnd, LVM_SETIMAGELIST, 0, (LPARAM)himl);




More information about the wine-cvs mailing list