comctl32: Properly set and store the default icon spacing.

This commit is contained in:
James Hawkins 2008-07-07 23:55:36 -05:00 committed by Alexandre Julliard
parent 833c342555
commit ba1e75d9f6
1 changed files with 4 additions and 0 deletions

View File

@ -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);