Commit dd30c5c2 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

GetItemSpacing(true): Return the default item spacing if the view is

LVS_ICON, and the current 'item size' otherwise.
parent 6d257f5c
......@@ -5756,10 +5756,16 @@ static LRESULT LISTVIEW_GetItemSpacing(HWND hwnd, BOOL bSmall)
}
else
{
/* TODO: need to store width of smallicon item */
lResult = MAKELONG(0, infoPtr->nItemHeight);
}
LONG style = GetWindowLongA(hwnd, GWL_STYLE);
if ((style & LVS_TYPEMASK) == LVS_ICON)
{
lResult = MAKELONG(DEFAULT_COLUMN_WIDTH, GetSystemMetrics(SM_CXSMICON)+HEIGHT_PADDING);
}
else
{
lResult = MAKELONG(infoPtr->nItemWidth, infoPtr->nItemHeight);
}
}
return lResult;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment