有时候,CListCtrl用来显示图片的时候,ICON模式下,不想看到label,即使把字体设为"",仍然可以看到文字区域。于是很多做法都出现了
(1)SetIconSpacing。这个函数在横排排列的时候,似乎很有用,一到竖排,乱七八糟,诡异的很。
(2)将ListCtrl的Font大小设置为-1,行么?
实际上,在WinXp之后CListCtrl就增加了扩展风格:LVS_EX_HIDELABELS
int nStyle = m_thumbnailVList.GetExtendedStyle();
m_thumbnailVList.SetExtendedStyle(nStyle | LVS_EX_HIDELABELS | LVS_EX_DOUBLEBUFFER);
设置即可。
评论
http://www.flshc.com 风淋室
http://www.flshc.com 高效空气过滤器
http://www.gdsanhui.com >医院手术室净化工程[/url]
http://www.gdsanhui.com光学微电子净化工程[/url]
http://www.gdsanhui.com LED/液晶/线路板净化工程[/url]
http://www.gdsanhui.com食品饮料净化工程[/url]
http://www.gdsanhui.com化妆品(日化)净化工程[/url]
嘉凡净化科技主页:http://www.gdjfc.com/
空气净化工程公司:http://www.gdjfc.com/contact.asp
空气净化工程网站:http://www.gdjfc.com/product.asp?class=15
广州净化工程网:http://www.gdjfc.com/product.asp?class=44
洁净室工程网:http://www.gdjfc.com/