From ba1e75d9f646a7059cb79a1b069a6275322c4ee2 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 7 Jul 2008 23:55:36 -0500 Subject: [PATCH] comctl32: Properly set and store the default icon spacing. --- dlls/comctl32/tests/listview.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c index 23b5f90e9b8..4f8b32d84f1 100644 --- a/dlls/comctl32/tests/listview.c +++ b/dlls/comctl32/tests/listview.c @@ -859,6 +859,10 @@ static void test_icon_spacing(void) r = SendMessage(hwnd, WM_NOTIFYFORMAT, (WPARAM)hwndparent, (LPARAM)NF_REQUERY); expect(NFR_ANSI, r); + /* reset the icon spacing to defaults */ + SendMessage(hwnd, LVM_SETICONSPACING, 0, (LPARAM) MAKELONG(-1, -1)); + + /* now we can request what the defaults are */ r = SendMessage(hwnd, LVM_SETICONSPACING, 0, (LPARAM) MAKELONG(-1, -1)); w = LOWORD(r); h = LOWORD(r);