GetItemSpacing(true): Return the default item spacing if the view is
LVS_ICON, and the current 'item size' otherwise.
This commit is contained in:
parent
6d257f5cf5
commit
dd30c5c282
@ -5756,10 +5756,16 @@ static LRESULT LISTVIEW_GetItemSpacing(HWND hwnd, BOOL bSmall)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* TODO: need to store width of smallicon item */
|
LONG style = GetWindowLongA(hwnd, GWL_STYLE);
|
||||||
lResult = MAKELONG(0, infoPtr->nItemHeight);
|
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;
|
return lResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user