comctl32: Make icons not overlapping in LVS_ICON mode.
This commit is contained in:
parent
8276a3375b
commit
25f347892e
|
@ -8564,10 +8564,12 @@ static DWORD LISTVIEW_SetIconSpacing(LISTVIEW_INFO *infoPtr, INT cx, INT cy)
|
|||
if (cy == -1) cy = GetSystemMetrics(SM_CYICONSPACING);
|
||||
|
||||
/* if 0 then compute width
|
||||
* FIXME: Should scan each item and determine max width of
|
||||
* icon or label, then make that the width */
|
||||
if (cx == 0)
|
||||
cx = infoPtr->iconSpacing.cx;
|
||||
* FIXME: computed cx and cy is not matching native behaviour */
|
||||
if (cx == 0) {
|
||||
cx = GetSystemMetrics(SM_CXICONSPACING);
|
||||
if (infoPtr->iconSize.cx + ICON_LR_PADDING > cx)
|
||||
cx = infoPtr->iconSize.cx + ICON_LR_PADDING;
|
||||
}
|
||||
|
||||
/* if 0 then compute height */
|
||||
if (cy == 0)
|
||||
|
|
Loading…
Reference in New Issue