设置ListView中图标的间隔

字体大小: 中小 标准 ->行高大小: 标准
发现ListView加入图标后间隔很大,我需要显示许多图标,所以希望排列紧凑一些,但不知如何实现!

uses commctrl,...;

function ListView_SetIconSpacing(hwndLV: HWND; cx, cy: Word): DWORD;

cx,cy:对应x,y方向上的间距

用法:

listview_seticonspacing(listview1.handle,20,20);

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/68377.html