James Hawkins : comctl32: Properly set and store the default icon spacing.
Alexandre Julliard
julliard at winehq.org
Tue Jul 8 06:11:08 CDT 2008
Module: wine
Branch: master
Commit: ba1e75d9f646a7059cb79a1b069a6275322c4ee2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ba1e75d9f646a7059cb79a1b069a6275322c4ee2
Author: James Hawkins <jhawkins at codeweavers.com>
Date: Mon Jul 7 23:55:36 2008 -0500
comctl32: Properly set and store the default icon spacing.
---
dlls/comctl32/tests/listview.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/tests/listview.c b/dlls/comctl32/tests/listview.c
index 23b5f90..4f8b32d 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);
More information about the wine-cvs
mailing list